ChooseBuildingDlg.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef CHOOSEBUILDINGDLG_H
  2. #define CHOOSEBUILDINGDLG_H
  3. /*************************************************************************************************\
  4. ChooseBuildingDlg.h : Interface for the ChooseBuildingDlg component.
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. \*************************************************************************************************/
  9. #include "resource.h"
  10. #include <elist.h>
  11. #include "Objective.h"
  12. #include "EditorObjectMgr.h"
  13. #include "stdafx.h"
  14. class ChooseBuildingDlg: public CDialog
  15. {
  16. public:
  17. typedef EditorObject *building_ptr_type;
  18. ChooseBuildingDlg( building_ptr_type &buildingPtr );
  19. BOOL OnCommand(WPARAM wParam, LPARAM lParam); // called by child controls to inform of an event
  20. void OnUsePointer();
  21. void OnCancel();
  22. void OnOK();
  23. virtual ~ChooseBuildingDlg();
  24. BOOL OnInitDialog();
  25. private:
  26. typedef CDialog inherited;
  27. // suppressing these
  28. inline ChooseBuildingDlg();
  29. ChooseBuildingDlg& operator=( const ChooseBuildingDlg& lgBuildingPtr );
  30. building_ptr_type *m_pModifiedBuildingPtr;
  31. building_ptr_type *m_pBuildingPtr;
  32. CComboBox *m_pComboBox;
  33. EditorObjectMgr::BUILDING_LIST m_buildingList;
  34. CButton *m_pUsingPointerButton;
  35. CButton *m_pCancelButton;
  36. CButton *m_pOKButton;
  37. };
  38. //*************************************************************************************************
  39. #endif // end of file ( ChooseBuildingDlg.h )