ticketsalingview.h

来自「售票程序计算机科学与工程学院 孙学波」· C头文件 代码 · 共 95 行

H
95
字号
// TicketSalingView.h : interface of the CTicketSalingView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TICKETSALINGVIEW_H__CDA48724_2C61_4253_AD8C_18C62C2AD727__INCLUDED_)
#define AFX_TICKETSALINGVIEW_H__CDA48724_2C61_4253_AD8C_18C62C2AD727__INCLUDED_

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


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

public:
	//{{AFX_DATA(CTicketSalingView)
	enum { IDD = IDD_TICKETSALING_FORM };
	CStatic	m_Title;
	CListCtrl	m_listTraveler;
	CTreeCtrl	m_treeBusInfo;
	//}}AFX_DATA

// Attributes
public:
	CTicketSalingDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTicketSalingView)
	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 FillListData(CTime today);
	void FillListData(CBusInfo *pBusInfo);
	void SetTitle(CBusInfo *pBusInfo);
	void SetTitle(CTime *pTime);
	virtual ~CTicketSalingView();

	int nTotalLines;
	int nPages;
	int nLinesPerPage;
	int first;
	int mLeftMargin;
	int mRightMargin;
	int mTopMargin;
	int mBottomMargin;


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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTicketSalingView)
	afx_msg void OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSaleticket();
	afx_msg void OnDeleteTicket();
	afx_msg void OnAddNewDay();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in TicketSalingView.cpp
inline CTicketSalingDoc* CTicketSalingView::GetDocument()
   { return (CTicketSalingDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_TICKETSALINGVIEW_H__CDA48724_2C61_4253_AD8C_18C62C2AD727__INCLUDED_)

⌨️ 快捷键说明

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