www.pudn.com > ssproj03.zip > Page4.h
#if !defined(AFX_PAGE4_H__926EF78D_5E06_439A_AA60_55F778957E2A__INCLUDED_)
#define AFX_PAGE4_H__926EF78D_5E06_439A_AA60_55F778957E2A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Page4.h : header file
//
#include "myedit.h"
/////////////////////////////////////////////////////////////////////////////
// CPage4 dialog
class CSyspara;
class CCity;
class CAirInfo;
//class CMyEdit;
class CPage4 : public CPropertyPage
{
DECLARE_DYNCREATE(CPage4)
// Construction
public:
void UpdateAirInfo();
void InsertAirInfo();
bool m_IsUpdate;
void Clear();
// void OnMyEnter();
void CreateTables();
void AddCity(CString str);
CMyEdit MyEdit;
CSyspara* m_dbSyspara;
CDatabase m_DB;
CAirInfo* m_dbAirInfo;
CCity* m_dbCity;
void Ini();
void GetCity();
CPage4();
~CPage4();
HACCEL m_hAccel; // accelerator table
// Dialog Data
//{{AFX_DATA(CPage4)
enum { IDD = IDD_PAGE4 };
CButton m_BtnDelAirInfo;
CButton m_BtnAirSave;
CComboBox m_Start;
CEdit m_NewCity;
CListBox m_City;
CEdit m_AirNo;
CComboBox m_AirTarget;
CComboBox m_AirStart;
CDateTimeCtrl m_StartTime;
CEdit m_Discount1;
CEdit m_Discount2;
CEdit m_Discount3;
CEdit m_LeftNum1;
CEdit m_LeftNum2;
CEdit m_LeftNum3;
CEdit m_Price1;
CEdit m_Price2;
CEdit m_Price3;
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CPage4)
public:
virtual void OnCancel();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPage4)
virtual BOOL OnInitDialog();
afx_msg void OnEditchangeCity();
afx_msg void OnEditupdateCity();
afx_msg void OnAddcity();
afx_msg void OnDblclkCity();
afx_msg void OnCreatedb();
afx_msg void OnDeletecity();
afx_msg void OnSelchangeStart();
afx_msg void OnMyEnter();
afx_msg void OnMyCancel();
afx_msg void OnKillfocusSerial();
afx_msg void OnAirinfosave();
afx_msg void OnKillfocusEditairno();
afx_msg void OnDelete();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PAGE4_H__926EF78D_5E06_439A_AA60_55F778957E2A__INCLUDED_)