maindlg.cpp

来自「利用odbc编程实现以下功能: 航班」· C++ 代码 · 共 93 行

CPP
93
字号
// maindlg.cpp : implementation file
//

#include "stdafx.h"
#include "dbexe.h"
#include "maindlg.h"
#include "flightdlg.h"
#include "hoteldlg1.h"
#include "cardlg.h"
#include "customdlg.h"
#include "reservedlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cmaindlg dialog


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


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


BEGIN_MESSAGE_MAP(Cmaindlg, CDialog)
	//{{AFX_MSG_MAP(Cmaindlg)
	ON_BN_CLICKED(IDC_FLIGHT, OnFlight)
	ON_BN_CLICKED(IDC_HOTEL, OnHotel)
	ON_BN_CLICKED(IDC_CAR, OnCar)
	ON_BN_CLICKED(IDC_CUSTOM, OnCustom)
	ON_BN_CLICKED(IDC_RESERVE, OnReserve)
	ON_BN_CLICKED(IDC_CANCEL, OnCancel)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cmaindlg message handlers

void Cmaindlg::OnFlight() 
{
Cflightdlg m_flight;
m_flight.customname=customname;
m_flight.DoModal();	// TODO: Add your control notification handler code here
}

void Cmaindlg::OnHotel() 
{
Choteldlg m_hotel;
m_hotel.customname=customname;
m_hotel.DoModal();		// TODO: Add your control notification handler code here
}

void Cmaindlg::OnCar() 
{
Ccardlg m_car;
m_car.customname=customname;
m_car.DoModal();	// TODO: Add your control notification handler code here
}

void Cmaindlg::OnCustom() 
{
Ccustomdlg m_custom;
m_custom.DoModal();	// TODO: Add your control notification handler code here
}

void Cmaindlg::OnReserve() 
{
Creservedlg m_reserve;
m_reserve.DoModal();	// TODO: Add your control notification handler code here
}

void Cmaindlg::OnCancel() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnCancel();
	
}

⌨️ 快捷键说明

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