📄 modallesdialog.cpp
字号:
// ModallesDialog.cpp : implementation file
//
#include "stdafx.h"
#include "E2_1.h"
#include "ModallesDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CModallesDialog dialog
CModallesDialog::CModallesDialog(CWnd* pParent /*=NULL*/)
: CDialog(CModallesDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CModallesDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CModallesDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CModallesDialog)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CModallesDialog, CDialog)
//{{AFX_MSG_MAP(CModallesDialog)
ON_BN_CLICKED(IDC_TRANSNUM_BUTTON, OnTransnumButton)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CModallesDialog message handlers
void CModallesDialog::OnTransnumButton()
{
// TODO: Add your control notification handler code here
CString s1;
CEdit* pEdit=(CEdit*)GetDlgItem(IDC_NUM_EDIT);
pEdit->GetWindowText(s1);
CWnd* pMain=AfxGetApp()->m_pMainWnd;
CDC* pDC=pMain->GetDC();
pDC->TextOut(100,100,s1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -