www.pudn.com > virtualListview_demo.zip > listview_exampleView.h
// listview_exampleView.h : interface of the CListview_exampleView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_LISTVIEW_EXAMPLEVIEW_H__94EE0DCE_0325_11D5_B481_0000C05E910B__INCLUDED_)
#define AFX_LISTVIEW_EXAMPLEVIEW_H__94EE0DCE_0325_11D5_B481_0000C05E910B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mylistctrl.h"
class CListview_exampleView : public CView
{
CMyListCtrl m_list;
DATA *linkedlist;
protected: // create from serialization only
CListview_exampleView();
DECLARE_DYNCREATE(CListview_exampleView)
// Attributes
public:
CListview_exampleDoc* GetDocument();
void AddItems(int count);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListview_exampleView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CListview_exampleView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CListview_exampleView)
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in listview_exampleView.cpp
inline CListview_exampleDoc* CListview_exampleView::GetDocument()
{ return (CListview_exampleDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LISTVIEW_EXAMPLEVIEW_H__94EE0DCE_0325_11D5_B481_0000C05E910B__INCLUDED_)