Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - GetImageManager() get HICON
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetImageManager() get HICON

 Post Reply Post Reply
Author
Message
Jose5 View Drop Down
Groupie
Groupie
Avatar

Joined: 07 June 2005
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jose5 Quote  Post ReplyReply Direct Link To This Post Topic: GetImageManager() get HICON
    Posted: 02 June 2009 at 4:46am
how to extract HICON from GetImageManager() loaded from a png resource
 thanks
IT WASENT ME!!!
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2009 at 10:13am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.