blob: 96c2b970f20f4a831b9dd46ee0afcd29f09d5e4c (
plain)
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
83
84
85
86
87
|
// FontsPage.h : header file
//
#include "ColorButton.h"
/////////////////////////////////////////////////////////////////////////////
// CFontsPage dialog
struct CFontFormat {
CHARFORMAT m_fmtChar;
COLORREF m_bgColor;
enum _flags {
flagBGColor = 1
};
int m_Flags;
CString m_Tip;
};
class CFontsPage : public CPropertyPage
{
DECLARE_DYNCREATE(CFontsPage)
// Construction
public:
CHARFORMAT m_fmtDefChar;
CFontFormat* m_fmtLast;
void AddFmt(UINT name,CFontFormat* cf,UINT flags=CFontFormat::flagBGColor);
void FillInFormats();
CFontFormat m_fmtT42System;
CFontFormat m_fmtT42Remote;
CFontFormat m_fmtT42Local;
static int CALLBACK FillInCharsets(const ENUMLOGFONTEX* lpelfe,const TEXTMETRIC* lpntme,const int FontType,const LPARAM lParam);
void FillCharsets();
void UpdateSample();
void UpdateFormat(BOOL bSave=FALSE);
CHARFORMAT m_fmtChar;
static int CALLBACK FillInFaces(const ENUMLOGFONTEX* lpelfe,const TEXTMETRIC* lpntme,const int FontType,const LPARAM lParam);
CFontsPage();
~CFontsPage();
// Dialog Data
//{{AFX_DATA(CFontsPage)
enum { IDD = IDD_OPTIONS_FONTS };
CStatic m_TipCtl;
CColorButton m_fgColorCtl;
CColorButton m_bgColorCtl;
CComboBox m_CharsetCtl;
CButton m_UnderlineCtl;
CButton m_StrikeoutCtl;
CButton m_ItalicCtl;
CButton m_BoldCtl;
CComboBox m_SizeCtl;
CListBox m_FormatsCtl;
CComboBox m_FacesCtl;
CRichEditCtrl m_SampleCtl;
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CFontsPage)
public:
virtual void OnOK();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CFontsPage)
virtual BOOL OnInitDialog();
afx_msg void OnSelendokFaces();
afx_msg void OnBold();
afx_msg void OnSelendokFontsize();
afx_msg void OnEditchangeFontsize();
afx_msg void OnItalic();
afx_msg void OnStrikeout();
afx_msg void OnUnderline();
afx_msg void OnSelendokCharset();
afx_msg void OnBackcolor();
afx_msg void OnForecolor();
afx_msg void OnSelchangeFormatname();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
|