📄 textdialog.cpp
字号:
// TextDialog.cpp : implementation file
//
#include "stdafx.h"
#include "ex27c.h"
#include "TextDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTextDialog dialog
CTextDialog::CTextDialog(CWnd* pParent /*=NULL*/)
: CDialog(CTextDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CTextDialog)
m_strText = _T("");
//}}AFX_DATA_INIT
}
void CTextDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTextDialog)
DDX_Text(pDX, IDC_TEXT, m_strText);
DDV_MaxChars(pDX, m_strText, 100);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTextDialog, CDialog)
//{{AFX_MSG_MAP(CTextDialog)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTextDialog message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -