📄 exchangdialog.cpp
字号:
// ExchangDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Ex1001.h"
#include "ExchangDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CExchangDialog dialog
CExchangDialog::CExchangDialog(CWnd* pParent /*=NULL*/)
: CDialog(CExchangDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CExchangDialog)
m_ShowString = _T("");
m_xPosition = 0;
m_yPosition = 0;
//}}AFX_DATA_INIT
}
void CExchangDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CExchangDialog)
DDX_Text(pDX, IDC_CHANGESTRING, m_ShowString);
DDV_MaxChars(pDX, m_ShowString, 30);
DDX_Text(pDX, IDC_EDIT1, m_xPosition);
DDX_Text(pDX, IDC_EDIT2, m_yPosition);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CExchangDialog, CDialog)
//{{AFX_MSG_MAP(CExchangDialog)
ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CExchangDialog message handlers
void CExchangDialog::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
CDialog::OnOK();
}
void CExchangDialog::OnChangeEdit2()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -