Print Page | Close Window

GetImageManager() get HICON

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=14435
Printed Date: 04 May 2024 at 6:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetImageManager() get HICON
Posted By: Jose5
Subject: GetImageManager() get HICON
Date Posted: 02 June 2009 at 4:46am
how to extract HICON from GetImageManager() loaded from a png resource
 thanks


-------------
IT WASENT ME!!!



Replies:
Posted By: rdhd
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net