SDC C-Project CF Review 프로그램
KEJ
2023-11-24 9020bfb6f86ff853d5d5b3cee882132a244232da
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
#pragma once
 
// 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();
};