Click here to Skip to main content
15,886,565 members
Articles / Desktop Programming / MFC

How to display the Pick Icon Dialog

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
12 Jan 2000CPOL 128K   1.8K   23  
Explains how to display the windows 'Pick Icon' dialog
In this post, you will find an explanation of how to use the Pick Icon common dialog.
#ifndef _SELECTICON_H_
#define _SELECTICON_H_

BOOL SelectIconW(HWND hWndParent, LPWSTR lpszFilename, DWORD dwBufferSize, DWORD *pdwIndex);
BOOL SelectIconA(HWND hWndParent, LPSTR lpszFilename, DWORD dwBufferSize, DWORD *pdwIndex);

#ifdef _UNICODE
#define SelectIcon SelectIconW
#else
#define SelectIcon SelectIconA
#endif


#endif

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Belgium Belgium
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.

Comments and Discussions