ex28cview.h

来自「vc++技术内幕第四版(清华版)源码。vc++技术内幕书是vc++的权威书籍」· C头文件 代码 · 共 81 行

H
81
字号
// ex28cView.h : interface of the CEx28cView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EX28CVIEW_H__6FE9FA8F_957D_11D0_AAA2_444553540000__INCLUDED_)
#define AFX_EX28CVIEW_H__6FE9FA8F_957D_11D0_AAA2_444553540000__INCLUDED_

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

class CEx28cSet;

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

public:
	//{{AFX_DATA(CEx28cView)
	enum { IDD = IDD_EX28C_FORM };
	CEx28cSet* m_pSet;
	//}}AFX_DATA

// Attributes
public:
	CEx28cDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEx28cView)
	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
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CEx28cView)
	afx_msg void OnRecordAdd();
	afx_msg void OnRecordClearfields();
	afx_msg void OnRecordDelete();
	afx_msg void OnUpdateRecordDelete(CCmdUI* pCmdUI);
	afx_msg void OnRecordUpdate();
	afx_msg void OnUpdateRecordUpdate(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ex28cView.cpp
inline CEx28cDoc* CEx28cView::GetDocument()
   { return (CEx28cDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_EX28CVIEW_H__6FE9FA8F_957D_11D0_AAA2_444553540000__INCLUDED_)

⌨️ 快捷键说明

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