FontComboBox.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #if !defined(AFX_FONTCOMBOBOX_H__B88A8EAC_D643_444C_B9B0_87CE8DC81E89__INCLUDED_)
  2. #define AFX_FONTCOMBOBOX_H__B88A8EAC_D643_444C_B9B0_87CE8DC81E89__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // FontComboBox.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CFontComboBox window
  10. class CFontComboBox : public CComboBox
  11. {
  12. // Construction
  13. public:
  14. CFontComboBox();
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. void FillCombo();
  20. void SetMaxWidth( int maxWidth );
  21. int GetMaxWidth() const;
  22. void SelectFontName( const CString& font );
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CFontComboBox)
  26. public:
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. public:
  30. virtual ~CFontComboBox();
  31. // Generated message map functions
  32. protected:
  33. //{{AFX_MSG(CFontComboBox)
  34. afx_msg void OnDropdown();
  35. //}}AFX_MSG
  36. DECLARE_MESSAGE_MAP()
  37. private:
  38. int m_maxWidth;
  39. };
  40. /////////////////////////////////////////////////////////////////////////////
  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  43. #endif // !defined(AFX_FONTCOMBOBOX_H__B88A8EAC_D643_444C_B9B0_87CE8DC81E89__INCLUDED_)