Click here to Skip to main content
Licence CPOL
First Posted 8 Sep 2006
Views 19,883
Downloads 392
Bookmarked 10 times

How to Show " Pick Icon Dialog "

By | 17 Sep 2006 | Article
Windows provides a facility to change folders and other icons, by showing this dialog
Sample Image - PickIconDialog.jpg

Introduction

Windows common dialog boxes are really common because just on CodeProject, you can see too many articles on common dialog boxes and about customizing them. But in this article, I am not going to show you a way to show "file open" or "font dialog". But how to show windows "Change Icon Dialog".

How To Show

Showing this dialog box is much easier, just an API away. But this API takes a Unicode string as input and returns results in the same string. So converting from ANSI string to Unicode string and then back to ANSI string is necessary.

My Approach

I just made a simple application which shows how to use this API in a simple way. In my application, the Icon you select from the "Change Icon" Dialog is shown in the dialog box, with the actual path to file which contains selected icon and index of icon in the file.

Actual Work

  • The "Change Icon Dialog" is shown with PickIconDlg() API.
  • The selected icon is shown in my dialog box with ExtractIcon().

History

  • Tuesday 29 August 2006: Minimum working model

License

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

About the Author

tanvon malik



Pakistan Pakistan

Member

Follow on Twitter Follow on Twitter
tanvon malik ( real name Tanveer Ahmad )I am a CNC Programmer, cnc setter, cnc operator. want to know about me visit my blog.
CNC Programming Blog
 
Reach Me
cnc blog | facebook | twitter | linkedin | flickr | google+
 
I been in Switzerland MAG former +FMS+ for CNC training.
 

Most interesting technologies I like COM MFC DirectShow such as filter development. I am from Pakistan.
Have worked on projects mostly related video capturing, video data processing and real time object tracking on videos. For these I have worked on projects which use "Open CV Library". Which is mostly used for capturing data and its processing.
 
my vc++ blog tanvon++
my blog about DirectShow in my national language URDU DirectShow.wordpress.com
and below is the place where we discuss DirectShow and VC++
http://groups.yahoo.com/group/tanvon

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralThanks, PinmemberGautam Jain0:39 19 May '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 17 Sep 2006
Article Copyright 2006 by tanvon malik
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid