GetImageManager() get HICON |
Post Reply |
Author | |
Jose5
Groupie Joined: 07 June 2005 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 02 June 2009 at 4:46am |
how to extract HICON from GetImageManager() loaded from a png resource
thanks |
|
IT WASENT ME!!!
|
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
|
At least with V12 I had to get the icon handle (passing in an icon id) and then copy the icon because I was getting a glyph (Oleg posted the fact that with V12 you have to copy the icon and it is mentioned in the release notes.) But once I got it, the background was black. I needed a bitmap so I had to create a compatible dc, fill it with the background I wanted and then draw the icon into the dc. Then I simply pulled the bitmap from the dc. So what you need to do depends on what you really want, an icon or a bitmap and what you want to do with it.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |