Visual C++_Turbo C串口通信编程实践_光盘
源代码在线查看: colorstatic.h
#ifndef _colorstatic_h_
#define _colorstatic_h_
/////////////////////////////////////////////////////////////////////////////
// CColorStatic window
class CColorStatic : public CStatic
{
// Construction
public:
CColorStatic();
virtual ~CColorStatic();
BOOL Attach(CWnd* pParent, UINT nID, CFont* font = NULL, COLORREF textcolor = RGB(0, 0, 0), COLORREF backgroundcolor = GetSysColor(COLOR_3DFACE));
void SetText(CString text = "");
void SetBkColor(COLORREF color = ::GetSysColor(COLOR_3DFACE));
void SetTextColor(COLORREF color = ::GetSysColor(COLOR_WINDOWTEXT));
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorStatic)
//}}AFX_VIRTUAL
// Generated message map functions
protected:
//{{AFX_MSG(CColorStatic)
//}}AFX_MSG
HBRUSH CColorStatic::CtlColor(CDC* pDC, UINT nCtlColor);
CFont* m_Font;
COLORREF m_BackgroundColor;
COLORREF m_TextColor;
CBrush m_brBackgroundBrush;
DECLARE_MESSAGE_MAP()
private:
};
/////////////////////////////////////////////////////////////////////////////
#endif