mldialog.cpp
来自「MFC编程实例」· C++ 代码 · 共 47 行
CPP
47 行
#include "stdafx.h"
#include "DB.h"
#include "MLDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CMLDialog::CMLDialog(CWnd* pParent /*=NULL*/)
: CDialog(CMLDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CMLDialog)
//}}AFX_DATA_INIT
m_pParent=pParent;
}
void CMLDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMLDialog)
//}}AFX_DATA_MAP
}
void CMLDialog::DoModeless()
{
if(GetSafeHwnd() == NULL)
{
Create(IDD, m_pParent);
ShowWindow(SW_SHOW);
CenterWindow();
}
else
{
if(IsWindowVisible() == FALSE)
{
ShowWindow(SW_SHOW);
}
}
}
BEGIN_MESSAGE_MAP(CMLDialog, CDialog)
//{{AFX_MSG_MAP(CMLDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?