courseview.h

来自「B/S架构的软件项目实训;包括全部详细文档合源程序」· C头文件 代码 · 共 81 行

H
81
字号
// courseView.h : interface of the CCourseView class
//
/////////////////////////////////////////////////////////////////////////////
#include "ElectiveCourseSet.h"

#if !defined(AFX_COURSEVIEW_H__CCD049D4_50DF_4EE3_AE2E_1A9ED0A205B2__INCLUDED_)
#define AFX_COURSEVIEW_H__CCD049D4_50DF_4EE3_AE2E_1A9ED0A205B2__INCLUDED_

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

class CCourseSet;

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

public:
	//{{AFX_DATA(CCourseView)
	enum { IDD = IDD_COURSE_FORM };
	CCourseSet* m_pSet;
	//}}AFX_DATA

// Attributes
public:
	CCourseDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCourseView)
	public:
	virtual CRecordset* OnGetRecordset();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	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:
	void LoadListBox();
	virtual ~CCourseView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCourseView)
	afx_msg void OnRecordFirst();
	afx_msg void OnRecordLast();
	afx_msg void OnRecordNext();
	afx_msg void OnRecordPrev();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in courseView.cpp
inline CCourseDoc* CCourseView::GetDocument()
   { return (CCourseDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_COURSEVIEW_H__CCD049D4_50DF_4EE3_AE2E_1A9ED0A205B2__INCLUDED_)

⌨️ 快捷键说明

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