ChooseUnitDlg.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef CHOOSEUNITDLG_H
  2. #define CHOOSEUNITDLG_H
  3. /*************************************************************************************************\
  4. ChooseUnitDlg.h : Interface for the ChooseUnitDlg 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 ChooseUnitDlg: public CDialog
  15. {
  16. public:
  17. typedef Unit *unit_ptr_type;
  18. ChooseUnitDlg( unit_ptr_type &unitPtr, int alignmentToExclude = -1 );
  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 ~ChooseUnitDlg();
  24. BOOL OnInitDialog();
  25. private:
  26. typedef CDialog inherited;
  27. // suppressing these
  28. inline ChooseUnitDlg();
  29. ChooseUnitDlg& operator=( const ChooseUnitDlg& lgUnitPtr );
  30. int m_alignmentToExclude;
  31. unit_ptr_type *m_pModifiedUnitPtr;
  32. unit_ptr_type *m_pUnitPtr;
  33. CComboBox *m_pComboBox;
  34. EditorObjectMgr::UNIT_LIST m_unitList;
  35. CButton *m_pUsingPointerButton;
  36. CButton *m_pCancelButton;
  37. CButton *m_pOKButton;
  38. };
  39. //*************************************************************************************************
  40. #endif // end of file ( ChooseUnitDlg.h )