LAPTOP-SNT8I5JK\Boounion
2025-03-21 d1fd8f9e1f5a012b301a6ce93c2ce7eb3c927e31
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#if !defined(AFX_FONTSTATIC_H__16C6D980_BD45_11D3_BDA3_00104B133581__INCLUDED_)
#define AFX_FONTSTATIC_H__16C6D980_BD45_11D3_BDA3_00104B133581__INCLUDED_
 
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FontStatic.h : header file
//
 
/////////////////////////////////////////////////////////////////////////////
// Defines for the font style
#define FS_NORMAL            0x00
#define FS_BOLD                0x01
#define FS_ITALIC            0x02
#define FS_UNDERLINED        0x04
#define FS_STRIKETHROUGH    0x08
#define FS_ANTIALIAS        0x10
 
// Defines for horizontal alignment
#define FS_CENTER            0x20
#define FS_LEFT                0x40
#define FS_RIGHT            0x80
 
// CFontStatic
 
class AFX_EXT_CLASS CFontStatic : 
    public CStatic
{
    DECLARE_DYNAMIC(CFontStatic)
 
public:
    CFontStatic();
 
    // Attributes
public:
    bool m_bBold;
    bool m_bItalic;
    bool m_bUnderlined;
    bool m_bStrikethrough;
    bool m_bAntialias;
    bool m_bBgColor;
 
    bool m_bCenter;
    bool m_bLeft;
    bool m_bRight;
 
    CString m_szText;
    CString m_szFont;
    DWORD m_dwColor;
    DWORD m_dwBgColor;
    int m_nSize;
 
    // Operations
public:
 
    // Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CFontStatic)
protected:
    virtual void PreSubclassWindow();
    //}}AFX_VIRTUAL
 
    // Implementation
public:
    void SetWindowText(LPCTSTR a_lpstr);
    void SetFontStyle(DWORD dwStyle);
    void SetBackground(DWORD dwBgColor);
    void SetFontStatic(CString szFont, int nSize, DWORD dwColor, DWORD dwStyle);
    virtual ~CFontStatic();
 
protected:
    DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnPaint();
};
 
/////////////////////////////////////////////////////////////////////////////
 
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
 
#endif // !defined(AFX_FONTSTATIC_H__16C6D980_BD45_11D3_BDA3_00104B133581__INCLUDED_)