www.pudn.com > TestIconPicker.zip > IconPicker.h, change:2004-04-01,size:1585b


#if !defined(AFX_ICONPICKER_H__D8AADA84_2CAC_4D27_9A8A_ABB0F2F3F2E6__INCLUDED_) 
#define AFX_ICONPICKER_H__D8AADA84_2CAC_4D27_9A8A_ABB0F2F3F2E6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// IconPicker.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CIconPicker window 
#include "afxtempl.h" 
#include "IconContainer.h" 
class CIconPicker : public CButton 
{ 
// Construction 
public: 
	CIconPicker(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CIconPicker) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	int GetCurrentBitmapIndex(); 
	void AddBitmap(CString strFileName); 
	int GetBitmapCount(); 
	CBitmap* GetBitmapAt(int index); 
	void AddBitmap(UINT BITMAP_ID); 
	void AddBitmap(HBITMAP hBitmap); 
	void AddBitmap(CBitmap* pBitmap); 
	virtual ~CIconPicker(); 
 
	// Generated message map functions 
protected: 
	int m_iCurIndex; 
	CArray<CBitmap*,CBitmap*> m_BitmapArray; 
	BOOL m_bState; 
	CIconContainer *m_pIconContainer; 
	//{{AFX_MSG(CIconPicker) 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnSelectICON(int index); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ICONPICKER_H__D8AADA84_2CAC_4D27_9A8A_ABB0F2F3F2E6__INCLUDED_)