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

📄 airlineview.h

📁 1.解压后在sql2000中建立数据库flight,然后用本文件中的flight文件进行还原 2.数据库连接是用ADO实现的,如果更改连接,打开后对两个程序的ADOConn.cpp进行修改就行(t
💻 H
字号:
// AirLineView.h : interface of the CAirLineView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_AIRLINEVIEW_H__3D5A8832_4DB2_4579_9C0F_0474AFDB132E__INCLUDED_)
#define AFX_AIRLINEVIEW_H__3D5A8832_4DB2_4579_9C0F_0474AFDB132E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ADOConn.h"

class CAirLineView : public CFormView
{
protected: // create from serialization only
	CAirLineView();
	DECLARE_DYNCREATE(CAirLineView)

public:
	//{{AFX_DATA(CAirLineView)
	enum { IDD = IDD_AIRLINE_FORM };
	CListCtrl	m_InfoList;
	//}}AFX_DATA

// Attributes
public:
	CAirLineDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAirLineView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void BuyDone();
	CRect rectList;
	void ShowResult();
	struct flight
	{
		CString id;
		CString start_city;
		CString end_city;
		CString start_time;
		CString end_time;
		CString start_date;
		CString part;
		int num;
		float price;
	}flights[100];
	int SetListHead(_RecordsetPtr m_Rs);
	virtual ~CAirLineView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CAirLineView)
	afx_msg void OnBtnSearch();
	afx_msg void OnBtnList();
	afx_msg void OnBtnCount();
	afx_msg void OnDblclkInfoList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBtnClient();
	afx_msg void OnBtnTicket();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:

	void ResetList();
	void ShowList();
};

#ifndef _DEBUG  // debug version in AirLineView.cpp
inline CAirLineDoc* CAirLineView::GetDocument()
   { return (CAirLineDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AIRLINEVIEW_H__3D5A8832_4DB2_4579_9C0F_0474AFDB132E__INCLUDED_)

⌨️ 快捷键说明

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