BaseComboBox.h 623 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. // CBaseComboBox
  3. class CBaseComboBox : public CComboBox
  4. {
  5. DECLARE_DYNAMIC(CBaseComboBox)
  6. public:
  7. CBaseComboBox();
  8. virtual ~CBaseComboBox();
  9. protected:
  10. DWORD m_dwStyle;
  11. CFont m_font;
  12. protected:
  13. DECLARE_MESSAGE_MAP()
  14. public:
  15. virtual BOOL Create(CWnd* pParentWnd, UINT nID, const RECT& rect);
  16. virtual void MeasureItem(LPMEASUREITEMSTRUCT lpdms);
  17. virtual void DrawItem(LPDRAWITEMSTRUCT lpdis);
  18. virtual void PreSubclassWindow();
  19. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  20. afx_msg void OnCbnSelchange();
  21. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  22. };