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

📄 studentview.h

📁 < Visual C++数据库经典开发实例精解>>的实例源码
💻 H
字号:
#if !defined(AFX_STUDENTVIEW_H__4158E0F8_707B_46ED_8119_BD566BBFE772__INCLUDED_)
#define AFX_STUDENTVIEW_H__4158E0F8_707B_46ED_8119_BD566BBFE772__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CStudentView record view
#include "ClassSet.h"
#include "StudentSet.h"

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

// Form Data
public:
	//{{AFX_DATA(CStudentView)
	enum { IDD = IDD_STUDENTFORM };
	CComboBox	m_classname;
	CButton	m_moveprev;
	CButton	m_movenext;
	CButton	m_movelast;
	CButton	m_movefirst;
	CStudentSet* m_pSet;
	CString	m_recnews;
	int m_recno;//当前记录号
	int m_reccount;//记录总数
	CClassSet* m_pSetC;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:
	CStudentSet* GetRecordset();
	void ShowData();


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStudentView)
		// 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 ~CStudentView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CStudentView)
	afx_msg void OnAddnewrecord();
	afx_msg void OnButtonMovefirst();
	afx_msg void OnButtonMovelast();
	afx_msg void OnButtonMovenext();
	afx_msg void OnButtonMoveprev();
	afx_msg void OnDeleterecord();
	afx_msg void OnSaverecord();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_STUDENTVIEW_H__4158E0F8_707B_46ED_8119_BD566BBFE772__INCLUDED_)

⌨️ 快捷键说明

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