📄 aoedlg.cpp
字号:
// AoeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "yyxz.h"
#include "AoeDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAoeDlg dialog
CAoeDlg::CAoeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAoeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CAoeDlg)
m_projectnum = 0;
m_activenum = 0;
//}}AFX_DATA_INIT
}
void CAoeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAoeDlg)
DDX_Text(pDX, IDC_EDIT_AOEVEX, m_projectnum);
DDX_Text(pDX, IDC_EDIT_AOEARC, m_activenum);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAoeDlg, CDialog)
//{{AFX_MSG_MAP(CAoeDlg)
ON_BN_CLICKED(IDC_BUTTON_AOEOK, OnButtonAoeok)
ON_BN_CLICKED(IDC_BUTTON_AOECNL, OnButtonAoecnl)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAoeDlg message handlers
void CAoeDlg::OnButtonAoeok()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
if(m_activenum==0||m_projectnum==0)
{
MessageBox("信息没有输入完全!");
}
else
{
m_pALDlg=new CAoelrDlg;
m_pALDlg->Create(IDD_AOELR_DIALOG,this);
m_pALDlg->m_activenumber=m_activenum;
m_pALDlg->m_projectnumber=m_projectnum;
CDialog::OnCancel();
m_pALDlg->ShowWindow(SW_SHOW);
}
}
void CAoeDlg::OnButtonAoecnl()
{
// TODO: Add your control notification handler code here
CDialog::OnCancel();
GetParent()->ShowWindow(SW_SHOW);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -