forked from Jiangxiaogang/FontMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontMakerDlg.h
69 lines (66 loc) · 1.75 KB
/
FontMakerDlg.h
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
// FontMakerDlg.h : 头文件
#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "BitFont.h"
#include "Charset.h"
#include "EditBox.h"
#include "PreviewWnd.h"
// CFontMakerDlg 对话框
class CFontMakerDlg : public CDialog
{
// 构造
public:
CFontMakerDlg(CWnd* pParent = NULL); // 标准构造函数
enum { IDD = IDD_MAIN };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
private:
CPreviewWnd m_draw;
CEditBox m_ebox;
CBitFont m_bitfont;
CCharset m_charset;
HFONT m_hFont;
WCHAR m_wChar;
UINT m_nCharIndex;
BOOL m_bInitOK;
int m_nFontSize;
int m_nFontWidth;
int m_nFontHeight;
int m_nOffsetX;
int m_nOffsetY;
CString m_szCharsetPath;
CComboBox m_listFontName;
CComboBox m_listFontStyle;
CComboBox m_listCharset;
CButton m_btnEdit;
CSpinButtonCtrl m_spFontSize;
CSpinButtonCtrl m_spFontWidth;
CSpinButtonCtrl m_spFontHeight;
CSpinButtonCtrl m_spOffsetX;
CSpinButtonCtrl m_spOffsetY;
HICON m_hIcon;
public:
// 生成的消息映射函数
virtual BOOL OnInitDialog();
virtual void PostNcDestroy();
void RedrawPreview();
void OnFontChange();
void OnCharChange();
void OnCharsetChange();
void OnCharTableChange();
DECLARE_MESSAGE_MAP()
afx_msg void OnBnClickedBtnEdit();
afx_msg void OnBnClickedBtnSave();
afx_msg void OnBnClickedBtnStd();
afx_msg void OnBnClickedBtnUser();
afx_msg void OnCbnSelchangeListFontName();
afx_msg void OnCbnSelchangeListFontStyle();
afx_msg void OnCbnSelchangeListCharset();
afx_msg void OnEnChangeEditFontSize();
afx_msg void OnEnChangeEditWidth();
afx_msg void OnEnChangeEditHeight();
afx_msg void OnEnChangeEditHorz();
afx_msg void OnEnChangeEditVert();
afx_msg void OnDeltaposSpin6(NMHDR *pNMHDR, LRESULT *pResult);
};