📄 modallessdlg.cpp
字号:
// ModallessDlg.cpp : implementation file
//
#include "stdafx.h"
#include "SMI.h"
#include "ModallessDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CModallessDlg dialog
CModallessDlg::CModallessDlg(CWnd* pParent /*=NULL*/)
: CDialog(CModallessDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CModallessDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CModallessDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CModallessDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CModallessDlg, CDialog)
//{{AFX_MSG_MAP(CModallessDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CModallessDlg message handlers
void CModallessDlg::PostNcDestroy()
{
// TODO: Add your specialized code here and/or call the base class
delete this;
CDialog::PostNcDestroy();
}
void CModallessDlg::OnCancel()
{
// TODO: Add extra cleanup here
DestroyWindow();
/*CDialog::OnCancel();*/
}
void CModallessDlg::OnOK()
{
// TODO: Add extra validation here
DestroyWindow();
/*CDialog::OnOK();*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -