vicview.h

来自「本人买的<<VC++项目开发实例>>源代码配套光盘.」· C头文件 代码 · 共 93 行

H
93
字号
// VicView.h : interface of the CVicView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VICVIEW_H__3FEA151A_28F1_460E_9FFE_50F0C08E2A35__INCLUDED_)
#define AFX_VICVIEW_H__3FEA151A_28F1_460E_9FFE_50F0C08E2A35__INCLUDED_

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


//##ModelId=3C37413B0304
class CVicView : public CListView
{
protected: // create from serialization only
	//##ModelId=3C37413C006F
	CVicView();
	DECLARE_DYNCREATE(CVicView)

// Attributes
public:
	//##ModelId=3C37413C00F1
	CVicDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVicView)
	public:
	//##ModelId=3C37413C00FB
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	//##ModelId=3C37413C019B
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//##ModelId=3C37413C01A6
	virtual void OnInitialUpdate(); // called first time after construct
	//##ModelId=3C37413C01B9
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	//##ModelId=3C37413C01CF
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	//##ModelId=3C37413C0200
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	//##ModelId=3C5CC9C60285
	void InitListView();
	//##ModelId=3C5CC9C6028F
	void InitImageList();
	//##ModelId=3CCC33690262
	CImageList m_ImageList[3];
	//##ModelId=3C37413C021E
	virtual ~CVicView();
#ifdef _DEBUG
	//##ModelId=3C37413C0228
	virtual void AssertValid() const;
	//##ModelId=3C37413C023D
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CVicView)
	//##ModelId=3C6215DC0105
	afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
	//##ModelId=3C6215DC0187
	afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
	//##ModelId=3C6215DC01EC
	afx_msg void OnReturn(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	//##ModelId=3C37413C0264
	afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in VicView.cpp
inline CVicDoc* CVicView::GetDocument()
   { return (CVicDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_VICVIEW_H__3FEA151A_28F1_460E_9FFE_50F0C08E2A35__INCLUDED_)

⌨️ 快捷键说明

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