📄 mydialog.cpp
字号:
// MyDialog.cpp : 实现文件
//
#include "stdafx.h"
#include "MFCExample.h"
#include "MyDialog.h"
// CMyDialog 对话框
IMPLEMENT_DYNAMIC(CMyDialog, CDialog)
CMyDialog::CMyDialog(CWnd* pParent /*=NULL*/)
: CDialog(CMyDialog::IDD, pParent)
{
}
CMyDialog::~CMyDialog()
{
}
void CMyDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_BN_CLICKED(IDC_BUTTON1, &CMyDialog::OnBnClickedButton1)
END_MESSAGE_MAP()
// CMyDialog 消息处理程序
void CMyDialog::OnBnClickedButton1()
{
CString str;
GetDlgItem(IDC_EDIT1)->GetWindowTextW(str);
MessageBoxW(str);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -