forked from hiyohiyo/CrystalDiskInfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontSelectionDlg.h
49 lines (37 loc) · 1.11 KB
/
FontSelectionDlg.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
/*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : [email protected]
// Web : https://crystalmark.info/
// License : The MIT License
/*---------------------------------------------------------------------------*/
#pragma once
#include "afxwin.h"
#include "ButtonFx.h"
#include "ComboBoxFx.h"
#include "FontComboBoxFx.h"
class CFontSelectionDlg : public CDialogFx
{
DECLARE_DYNAMIC(CFontSelectionDlg)
static const int SIZE_X = 480;
static const int SIZE_Y = 208;
enum { IDD = IDD_FONT };
public:
CFontSelectionDlg(CWnd* pParent = NULL);
virtual ~CFontSelectionDlg();
CString GetFontFace();
int GetFontScale();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
virtual void UpdateDialogSize();
void SetDefaultFont(CString fontFace);
DECLARE_MESSAGE_MAP()
afx_msg void OnSetDefault();
afx_msg void OnOk();
CStaticFx m_LabelFontFace;
CStaticFx m_LabelFontScale;
CButtonFx m_CtrlOk;
CButtonFx m_CtrlSetDefault;
CFontComboBox m_CtrlFontFace;
CComboBoxFx m_CtrlFontScale;
};