📄 fontdlg.cpp
字号:
// TextFontDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DLL.h"
#include "FontDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// TextFontDlg dialog
TextFontDlg::TextFontDlg(CWnd* pParent /*=NULL*/)
: CDialog(TextFontDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(TextFontDlg)
m_FontHeight = 0.0f;
m_FontWide = 0.0f;
m_Angle1 = 0.0f;
m_Angle2 = 0.0f;
m_FontBetween = 0.0f;
//}}AFX_DATA_INIT
}
TextFontDlg::TextFontDlg(float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween,CWnd* pParent /*= NULL*/)
: CDialog(TextFontDlg::IDD, pParent)
{
m_FontHeight = FontHeight;
m_FontWide = FontWide;
m_Angle1 = Angle1;
m_Angle2 = Angle2;
m_FontBetween = FontBetween;
}
void TextFontDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(TextFontDlg)
DDX_Text(pDX, IDC_EDIT1, m_FontHeight);
DDX_Text(pDX, IDC_EDIT2, m_FontWide);
DDX_Text(pDX, IDC_EDIT3, m_Angle1);
DDX_Text(pDX, IDC_EDIT4, m_Angle2);
DDX_Text(pDX, IDC_EDIT5, m_FontBetween);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(TextFontDlg, CDialog)
//{{AFX_MSG_MAP(TextFontDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// TextFontDlg message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -