www.pudn.com > 在CListCtrl中显示动态生成的位图.rar > SampleDlg.h


// SampleDlg.h : header file 
// 
 
#if !defined(AFX_SAMPLEDLG_H__CCADFB35_39F0_4217_BC80_3C8BF5B4C0B9__INCLUDED_) 
#define AFX_SAMPLEDLG_H__CCADFB35_39F0_4217_BC80_3C8BF5B4C0B9__INCLUDED_ 
 
#include "RendererLegend.h"	// Added by ClassView 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CSampleDlg dialog 
 
class CSampleDlg : public CDialog 
{ 
// Construction 
public: 
	 
	CSampleDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CSampleDlg) 
	enum { IDD = IDD_SAMPLE_DIALOG }; 
	CStatic	m_titleWnd; 
	CListCtrl	m_itemList; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSampleDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CSampleDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	CRendererLegend m_legendData; 
private: 
	CImageList* CreateImageList(CDC* pDC); 
	void TestLegend(); 
	void UseData(); 
	void FillData(); 
	 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SAMPLEDLG_H__CCADFB35_39F0_4217_BC80_3C8BF5B4C0B9__INCLUDED_)