|
-
April 15th, 1999, 01:55 AM
#1
How to add an icon to a toolbar button?
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);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|