mydatabaseview.h

来自「学籍管理系统JAVA源码,可实现学生学籍管理」· C头文件 代码 · 共 90 行

H
90
字号
// MyDatabaseView.h : interface of the CMyDatabaseView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYDATABASEVIEW_H__ED121BED_F570_43AF_989D_56FB68E34E73__INCLUDED_)
#define AFX_MYDATABASEVIEW_H__ED121BED_F570_43AF_989D_56FB68E34E73__INCLUDED_

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

class CMyDatabaseSet;

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

public:
	//{{AFX_DATA(CMyDatabaseView)
	enum { IDD = IDD_MYDATABASE_FORM };
	CMyDatabaseSet* m_pSet;
/*	long	m_nID;
	long	m_nMath;
	CString	m_szName;
	CString	m_sex;
	long	m_nCh;*/
	//}}AFX_DATA

// Attributes
public:
	CMyDatabaseDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDatabaseView)
	public:
	virtual CRecordset* OnGetRecordset();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnMove(UINT nIDMoveCommand);
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	int m_nNum;
	virtual ~CMyDatabaseView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	bool m_bAddMode;
	//{{AFX_MSG(CMyDatabaseView)
	afx_msg void OnSort();
	afx_msg void OnUndo();
	afx_msg void OnModify();
	afx_msg void OnDelete();
	afx_msg void OnAddnew();
	afx_msg void OnButton1();
	afx_msg void OnRecordFirst();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MyDatabaseView.cpp
inline CMyDatabaseDoc* CMyDatabaseView::GetDocument()
   { return (CMyDatabaseDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MYDATABASEVIEW_H__ED121BED_F570_43AF_989D_56FB68E34E73__INCLUDED_)

⌨️ 快捷键说明

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