组合框.h
资源名称:ComBox.rar [点击查看]
上传用户:shlcjx
上传日期:2008-11-20
资源大小:21k
文件大小:1k
源码类别:
组合框控件
开发平台:
Visual C++
- #if !defined(AFX_MYCOMBOBOX_H__1555680E_4B5D_4166_97F6_F497FFB551E5__INCLUDED_)
- #define AFX_MYCOMBOBOX_H__1555680E_4B5D_4166_97F6_F497FFB551E5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MyComboBox.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CMyComboBox window
- class CMyComboBox : public CComboBox
- {
- // Construction
- public:
- CMyComboBox();
- COLORREF m_ColorText,m_ColorBk;
- CBrush m_Brush;
- //设置字体大小
- void SetFontSize(int iSize,CFont* font);
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyComboBox)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMyComboBox();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyComboBox)
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MYCOMBOBOX_H__1555680E_4B5D_4166_97F6_F497FFB551E5__INCLUDED_)