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

📄 stuview.h

📁 VC技术内幕 很不错的一本书
💻 H
字号:
// StuView.h : interface of the CStudentView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_STUVIEW_H__1A036EAB_821A_11D0_8FE2_00C04FC2A0C2__INCLUDED_)
#define AFX_STUVIEW_H__1A036EAB_821A_11D0_8FE2_00C04FC2A0C2__INCLUDED_

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

class CStudentView : public CFormView
{
protected:
	POSITION      m_position; // current position in document list
	CStudentList* m_pList;    // copied from document

protected: // create from serialization only
	CStudentView();
	DECLARE_DYNCREATE(CStudentView)

public:
	//{{AFX_DATA(CStudentView)
	enum { IDD = IDD_STUDENT };
	int		m_nGrade;
	CString	m_strName;
	//}}AFX_DATA

// Attributes
public:
	CStudentDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStudentView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

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

protected:
	virtual void ClearEntry();
	virtual void InsertEntry(POSITION position);
	virtual void GetEntry(POSITION position);

// Generated message map functions
protected:
	//{{AFX_MSG(CStudentView)
	afx_msg void OnClear();
	afx_msg void OnCommandHome();
	afx_msg void OnCommandEnd();
	afx_msg void OnCommandPrev();
	afx_msg void OnCommandNext();
	afx_msg void OnCommandIns();
	afx_msg void OnCommandDel();
	afx_msg void OnUpdateCommandHome(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandEnd(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCommandDel(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in StuView.cpp
inline CStudentDoc* CStudentView::GetDocument()
   { return (CStudentDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STUVIEW_H__1A036EAB_821A_11D0_8FE2_00C04FC2A0C2__INCLUDED_)

⌨️ 快捷键说明

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