vc08view.h

来自「Visual C++ 6.0编程基础与范例」· C头文件 代码 · 共 87 行

H
87
字号
// vc08View.h : interface of the CVc08View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VC08VIEW_H__81F13F2F_0265_11D3_A012_0060085A8930__INCLUDED_)
#define AFX_VC08VIEW_H__81F13F2F_0265_11D3_A012_0060085A8930__INCLUDED_

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


class CVc08View : public CFormView
{
protected: // create from serialization only
	CVc08View();
	DECLARE_DYNCREATE(CVc08View)

public:
	//{{AFX_DATA(CVc08View)
	enum { IDD = IDD_VC08_FORM };
	CString	m_name;
	float	m_price;
	int m_index;
	//}}AFX_DATA

// Attributes
public:
	CVc08Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVc08View)
	public:
	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);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CVc08View)
	afx_msg void OnFirstRec();
	afx_msg void OnUpdateFirstRec(CCmdUI* pCmdUI);
	afx_msg void OnLastRec();
	afx_msg void OnUpdateLastRec(CCmdUI* pCmdUI);
	afx_msg void OnNewRec();
	afx_msg void OnNextRec();
	afx_msg void OnUpdateNextRec(CCmdUI* pCmdUI);
	afx_msg void OnPrevRec();
	afx_msg void OnUpdatePrevRec(CCmdUI* pCmdUI);
	afx_msg void OnDelRec();
	afx_msg void OnUpdateDelRec(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in vc08View.cpp
inline CVc08Doc* CVc08View::GetDocument()
   { return (CVc08Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_VC08VIEW_H__81F13F2F_0265_11D3_A012_0060085A8930__INCLUDED_)

⌨️ 快捷键说明

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