⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maindlg.cpp

📁 是我大学事情开发的一个很经典的案例
💻 CPP
字号:
// mainDlg.cpp : implementation file
//

#include "stdafx.h"
#include "pmz.h"
#include "mainDlg.h"
#include "xiugaimimaDlg.h"
#include "chaxunkebiaoDlg.h"
#include "xuankeDlg.h"
#include "chaxunkechengDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// mainDlg dialog


mainDlg::mainDlg(CWnd* pParent /*=NULL*/)
	: CDialog(mainDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(mainDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void mainDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(mainDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(mainDlg, CDialog)
	//{{AFX_MSG_MAP(mainDlg)
	ON_COMMAND(ID_MENUITEM32771, Onxiugaimima)
	ON_COMMAND(ID_MENUITEM32772, Ontuichu)
	ON_COMMAND(ID_MENUITEM32773, Onchaxunkebiao)
	ON_COMMAND(ID_MENUITEM32776, Onkechengyiluan)
	ON_COMMAND(ID_MENUITEM32777, Onchaxunkecheng)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// mainDlg message handlers

void mainDlg::Onxiugaimima() 
{
	xiugaimimaDlg xiugaimima;
	xiugaimima.DoModal();
	
}

void mainDlg::Ontuichu() 
{
	CDialog::OnCancel();	
}

void mainDlg::Onchaxunkebiao() 
{
  chaxunkebiaoDlg  chaxunkebiao;
  chaxunkebiao.DoModal();
	
}


void mainDlg::Onkechengyiluan() 
{
 xuankeDlg xk;
 xk.DoModal();	
}

void mainDlg::Onchaxunkecheng() 
{
	chaxunkechengDlg chaxunkecheng;
	chaxunkecheng.DoModal();
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -