#pragma once class CHmLabel : public CStatic { public: CHmLabel(); ~CHmLabel(); public: void setText(CString strText); void setNote1(CString strNote1); void setFontSize(int size); void setNoteFontSize(int size); void setBackground(COLORREF color, BOOL bInvalidate = FALSE); void setForeground(COLORREF color, BOOL bInvalidate = FALSE); void setNoteTextColor(COLORREF color, BOOL bInvalidate = FALSE); private: COLORREF m_crFrame; COLORREF m_crBackground; COLORREF m_crForeground; COLORREF m_crNote; HFONT m_hFont; HFONT m_hFontNote; private: CString m_strNote1; public: DECLARE_MESSAGE_MAP() afx_msg void OnPaint(); afx_msg void OnNcPaint(); };