📄 seconddlg.cpp
字号:
// SecondDlg.cpp : implementation file
//
#include "stdafx.h"
#include "RWXML8.h"
#include "SecondDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSecondDlg dialog
CSecondDlg::CSecondDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSecondDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSecondDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CSecondDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSecondDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSecondDlg, CDialog)
//{{AFX_MSG_MAP(CSecondDlg)
ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSecondDlg message handlers
void CSecondDlg::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
DestroyWindow();
delete this;
}
void CSecondDlg::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
DestroyWindow();
delete this;
}
void CSecondDlg::OnChangeEdit1()
{
// 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
// CString str;
// CStatic* pWnd=(CStatic*)GetDlgItem(IDC_EDIT1);
//pWnd->SetWindowText("ok");
// pWnd->GetWindowText(IDC_EDIT1,NULL);
// CStatic* pWnd2=(CStatic*)GetDlgItem(IDC_STATIC2);
// pWnd->SetWindowText(pWnd);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -