CtrlEnumCombo.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // CtrlEnumCombo.h : header file
  13. //
  14. #ifndef CTRLENUMCOMBO_H
  15. #define CTRLENUMCOMBO_H 1
  16. class CPropertyComboBar;
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CCtrlEnumCombo window
  19. class CCtrlEnumCombo : public CComboBox
  20. {
  21. // Construction
  22. public:
  23. CCtrlEnumCombo();
  24. // Attributes
  25. public:
  26. // ptr to parent dialog
  27. CPropertyComboBar *m_pDialog;
  28. // Operations
  29. public:
  30. // sets ptr to parent dialog
  31. void SetDialogPtr( CPropertyComboBar *pDialog);
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CCtrlEnumCombo)
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. public:
  38. virtual ~CCtrlEnumCombo();
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CCtrlEnumCombo)
  42. afx_msg void OnSelchange();
  43. afx_msg void OnDropdown();
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. /////////////////////////////////////////////////////////////////////////////
  48. #endif // CTRLENUMCOMBO_H