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

📄 cpglview.h

📁 课程设计自己写的一个汽车票管理系统用Visual C++实现的程序代码
💻 H
字号:
// cpglView.h : interface of the CCpglView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CPGLVIEW_H__DE7B63F1_C2C8_4A7C_9D42_316283694E1C__INCLUDED_)
#define AFX_CPGLVIEW_H__DE7B63F1_C2C8_4A7C_9D42_316283694E1C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CccSet;
class CcpSet;
class CmainSet;

class CCpglView : public CRecordView
{
protected: // create from serialization only
	CCpglView();
	DECLARE_DYNCREATE(CCpglView)

public:
	//{{AFX_DATA(CCpglView)
	enum { IDD = IDD_CPGL_FORM };
	CListCtrl	m_InfoList;
	CccSet* m_ccSet;
	CcpSet* m_cpSet;
	CmainSet* m_mainSet;
	CString	m_EtDes;
	CString	m_EtDate;
	CString	m_EtNum;
	CString	m_EtCPH;
	//}}AFX_DATA

// Attributes
public:
	CCpglDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCpglView)
	public:
	virtual CRecordset* OnGetRecordset();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	CString p_cc;		//全局变量,存储要购买的车次
	CString p_fcsj;		//发车时间
	CString p_fcrq;		//发车日期
	float p_pj;			//票价
	int cph;			//系统启动的时候需要获取上次最后的车票号
	void GetTime(CString cc,CString pj);
	void GetNumber(int i,CString cc,CString fcDate,CString fcTime);
	CString GetDes;
	CString GetDate;
	virtual ~CCpglView();
	HBRUSH m_Brush;

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCpglView)
	afx_msg void OnBtnSearch();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnBtnBuy();
	afx_msg void OnClickInfo(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBtnBack();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in cpglView.cpp
inline CCpglDoc* CCpglView::GetDocument()
   { return (CCpglDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CPGLVIEW_H__DE7B63F1_C2C8_4A7C_9D42_316283694E1C__INCLUDED_)

⌨️ 快捷键说明

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