// Ex16bView.h : interface of the CEx16bView class // #pragma once class CEx16bView : public CFormView { protected: // create from serialization only CEx16bView(); DECLARE_DYNCREATE(CEx16bView) public: enum{ IDD = IDD_EX16B_FORM }; // Attributes public: CEx16bDoc* GetDocument() const; protected: POSITION m_position; // current position in document list CStudentList* m_pList; // copied from document // Operations public: // Overrides public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnInitialUpdate(); // called first time after construct // Implementation public: virtual ~CEx16bView(); #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: DECLARE_MESSAGE_MAP() public: afx_msg void OnStudentHome(); afx_msg void OnStudentEnd(); afx_msg void OnStudentPrevious(); afx_msg void OnStudentNext(); afx_msg void OnStudentInsert(); afx_msg void OnStudentDelete(); afx_msg void OnUpdateStudentHome(CCmdUI *pCmdUI); afx_msg void OnUpdateStudentEnd(CCmdUI *pCmdUI); afx_msg void OnUpdateStudentPrevious(CCmdUI *pCmdUI); afx_msg void OnUpdateStudentNext(CCmdUI *pCmdUI); afx_msg void OnUpdateStudentDelete(CCmdUI *pCmdUI); int m_nGrade; CString m_strName; protected: virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/); public: afx_msg void OnBnClickedClear(); }; #ifndef _DEBUG // debug version in Ex16bView.cpp inline CEx16bDoc* CEx16bView::GetDocument() const { return reinterpret_cast(m_pDocument); } #endif