Click to See Complete Forum and Search --> : How to add an icon to a toolbar button?


Tiffany Chen
April 15th, 1999, 01:55 AM
I use ExtractIcon function to retrieve a handle (hIcon) to an icon from a specified executable file. My problem is how do I load this hIcon to a toolbar button? Thanks in advance.

Here is what I got:
-----------------------------------------
HICON hIcon = NULL;
HINSTANCE hInst;
CString strFile = "C:\\Program Files\\Internet Explorer\\Iexplore.exe";
hIcon = ::ExtractIcon(hInst, strFile, 0);