📄 cstm1dlg.cpp
字号:
// cstm1dlg.cpp : implementation file
//
#include "stdafx.h"
#include "MyAppwizard.h"
#include "cstm1dlg.h"
#include "MyAppwizardaw.h"
#ifdef _PSEUDO_DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCustom1Dlg dialog
CCustom1Dlg::CCustom1Dlg()
: CAppWizStepDlg(CCustom1Dlg::IDD)
{
//{{AFX_DATA_INIT(CCustom1Dlg)
m_strAuthor = _T("");
m_strComment = _T("");
//}}AFX_DATA_INIT
}
void CCustom1Dlg::DoDataExchange(CDataExchange* pDX)
{
CAppWizStepDlg::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCustom1Dlg)
DDX_Text(pDX, IDC_AUTHOR, m_strAuthor);
DDX_Text(pDX, IDC_COMMENT, m_strComment);
//}}AFX_DATA_MAP
}
// This is called whenever the user presses Next, Back, or Finish with this step
// present. Do all validation & data exchange from the dialog in this function.
BOOL CCustom1Dlg::OnDismiss()
{
if (!UpdateData(TRUE))
return FALSE;
// TODO: Set template variables based on the dialog's data.
if(!m_strAuthor.IsEmpty())
MyAppwizardaw.m_Dictionary["PROJ_AUTHOR"] = m_strAuthor;
else
MyAppwizardaw.m_Dictionary["PROJ_AUTHOR"] = "";
if (!m_strComment.IsEmpty())
MyAppwizardaw.m_Dictionary["PROJ_COMMENT"] = m_strComment;
else
MyAppwizardaw.m_Dictionary["PROJ_COMMENT"] = "";
return TRUE; // return FALSE if the dialog shouldn't be dismissed
}
BEGIN_MESSAGE_MAP(CCustom1Dlg, CAppWizStepDlg)
//{{AFX_MSG_MAP(CCustom1Dlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCustom1Dlg message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -