www.pudn.com > ListViewStradley_demo.zip > ListViewDlg.h


// ListViewDlg.h : header file 
// 
 
#if !defined(LISTVIEWDLG_H) 
#define LISTVIEWDLG_H 1 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#if !defined(LISTCTL_H) 
    #include "listctl.h" 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CListViewDlg dialog 
 
class CListViewDlg : public CDialog 
{ 
// Construction 
public: 
	CListViewDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CListViewDlg) 
	enum { IDD = IDD_LISTVIEW_DIALOG }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CListViewDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	CMyListCtl  m_List; 
	HICON	    m_hIcon; 
 
	BOOL	addField (int iItem, CString FieldName, CString FieldValue); 
	void	initList (); 
 
	// Generated message map functions 
	//{{AFX_MSG(CListViewDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnDestroy(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_LISTVIEWDLG_H__7068F0C5_F993_11D2_B330_00E029355185__INCLUDED_)