chenluhua1980
7 天以前 ceb64b6612309fe384e096dcdc8b5a5e0dfe6cce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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();
};