driversetview.h

来自「汽车站售票管理系统,源代码完整无错」· C头文件 代码 · 共 83 行

H
83
字号
#if !defined(AFX_DRIVERSETVIEW_H__DAD24AD7_A993_4886_BA71_FF67CF9B722E__INCLUDED_)
#define AFX_DRIVERSETVIEW_H__DAD24AD7_A993_4886_BA71_FF67CF9B722E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DriversetView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDriversetView record view

#include "DriverSet.h"

class CDriversetView : public CRecordView
{
protected:
	CDriversetView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CDriversetView)

// Form Data
public:
	//{{AFX_DATA(CDriversetView)
	enum { IDD = IDD_DRIVERSETVIEW };
	CListCtrl	m_list;
	CDriverSet* m_pSet;
	int		m_driverid;
	CString	m_drivername;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:
	CDriverSet* GetRecordset();


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDriversetView)
		// NOTE - the ClassWizard will add and remove member functions here.
	public:
	virtual CRecordset* OnGetRecordset();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CDriversetView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CDriversetView)
	afx_msg void OnAdd();
	afx_msg void OnChange();
	afx_msg void OnDelete();
	afx_msg void OnSave();
	afx_msg void OnReturn();
	afx_msg void OnRefurbish();
	afx_msg void OnClickList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int operation;
	void EnableView(bool b);
	int curiItem;
	void Showlist();
	void Getvalue();
};

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

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

#endif // !defined(AFX_DRIVERSETVIEW_H__DAD24AD7_A993_4886_BA71_FF67CF9B722E__INCLUDED_)

⌨️ 快捷键说明

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