ISwapablePanel.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. ** Command & Conquer Generals Zero Hour(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // FILE: ISwapablePanel.h
  19. /*---------------------------------------------------------------------------*/
  20. /* EA Pacific */
  21. /* Confidential Information */
  22. /* Copyright (C) 2001 - All Rights Reserved */
  23. /* DO NOT DISTRIBUTE */
  24. /*---------------------------------------------------------------------------*/
  25. /* Project: RTS3 */
  26. /* File name: ISwapablePanel.h */
  27. /* Created: John K. McDonald, Jr., 3/21/2002 */
  28. /* Desc: Swapable panels derive from this so that we can easily call */
  29. /* the update function */
  30. /* Revision History: */
  31. /* 3/21/2002 : Initial creation */
  32. /*---------------------------------------------------------------------------*/
  33. #pragma once
  34. #ifndef _H_ISWAPABLEPANEL_
  35. #define _H_ISWAPABLEPANEL_
  36. #include "Lib/BaseType.h"
  37. // INCLUDES ///////////////////////////////////////////////////////////////////
  38. // DEFINES ////////////////////////////////////////////////////////////////////
  39. // TYPE DEFINES ///////////////////////////////////////////////////////////////
  40. // FORWARD DECLARATIONS ///////////////////////////////////////////////////////
  41. interface ISwapablePanel : public CDialog
  42. {
  43. ISwapablePanel(UINT nIDTemplate = 0, CWnd* pParentWnd = NULL) : CDialog(nIDTemplate, pParentWnd) {}
  44. virtual DWORD GetIDD( void ) = 0;
  45. virtual void performUpdate( IN Bool toUI ) = 0;
  46. virtual void InitPanel( void ) = 0;
  47. };
  48. #endif /* _H_ISWAPABLEPANEL_ */