Click here to Skip to main content
15,893,588 members
Articles / Desktop Programming / MFC

CIconDialog - Icon Selection Dialog

Rate me:
Please Sign up or sign in to vote.
4.68/5 (5 votes)
3 Mar 2000 95.1K   1.3K   23  
A Freeware MFC dialog class to select an icon
class CIconDlgTestDlg : public CDialog
{
public:
	CIconDlgTestDlg(CWnd* pParent = NULL);	// standard constructor

	//{{AFX_DATA(CIconDlgTestDlg)
	enum { IDD = IDD_ICONDLGTEST };
	//}}AFX_DATA

	//{{AFX_VIRTUAL(CIconDlgTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

protected:
	HICON m_hIcon;

	//{{AFX_MSG(CIconDlgTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnShow();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

  CString m_sFilename;
  int m_nIconIndex;
  BOOL m_bRetreivedIcon;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions