![]() |
does LoadAlphaIcon work? |
Post Reply
|
| Author | |
chrisjohnson
Newbie
Joined: 28 March 2005 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: does LoadAlphaIcon work?Posted: 07 April 2005 at 3:16pm |
|
I'm trying to create toolbars on the fly, by loading the button images from .ico files.
In my CMainFrame I am using the following to load the icon: HBITMAP hBmp = CXTPImageManagerIcon::LoadAlphaIcon("G:\\icon17.ico",32); The icon file has a single 32x32 16Million colour icon (I've also tried with 256 colour icons and icon files with multiple icons). hBmp always ends up NULL. I can load the icon using LoadImage. I only have the demo version right now, so I can't see what is going on in the code. Any ideas? |
|
![]() |
|
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 April 2005 at 10:21pm |
|
Wouldn't Alpha mean you should be using 32bit (not 24bit, if thats what you mean by 16M color) |
|
![]() |
|
chrisjohnson
Newbie
Joined: 28 March 2005 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 April 2005 at 2:32am |
|
That might be it. I didn't know Alpha icons have to be 32bit.
I'll see if I can find a 32bit icon I can test it out with. Thanks! |
|
![]() |
|
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 |