In this post, you will find an explanation of how to use the Pick Icon common dialog.
|
// PickIconDlg.h : header file
//
#if !defined(AFX_PICKICONDLG_H__91E0834C_95B6_11D3_BD60_00A0C9A341EC__INCLUDED_)
#define AFX_PICKICONDLG_H__91E0834C_95B6_11D3_BD60_00A0C9A341EC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CPickIconDlg dialog
class CPickIconDlg : public CDialog
{
// Construction
public:
CPickIconDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CPickIconDlg)
enum { IDD = IDD_PICKICON_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPickIconDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
TCHAR m_pszCurrentFile[MAX_PATH];
DWORD m_dwCurrentIndex;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPickIconDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonChangeicon();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PICKICONDLG_H__91E0834C_95B6_11D3_BD60_00A0C9A341EC__INCLUDED_)
|
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.
Henk studied computer science at the University of Ghent, specializing in theoretical computer science.
He is now working for
Artwork Systems, Belgium, and
Whirling Dervishes Software, Belgium.
Henk knows a little something about networking, graphics, object-oriented design, AI, embedded systems. He knows most of the PDF specs by heart.
Henk developed
NSELib, the NameSpace Extension Library.
You can find his latest freeware software at
regxplor.com. It contains a namespace extension that puts the registry in Windows Explorer. The newest commercial project is
Alpha ZIP, an explorer-embedded ZIP file utility.