![]() |
Alpha channel doesn't work with Vista black... |
Post Reply ![]() |
Author | |
ddlittle ![]() Senior Member ![]() Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
![]() ![]() ![]() ![]() ![]() Posted: 19 July 2008 at 1:57pm |
I don't know if it's a black problem or not, but my alpha channel on my custom icons looks like a big black hole around the icons. I've noticed in other places in this forum that i should stop using CImageList, but I'm not sure how to do that. Here's my icon loading code (I load icons from a resource-only DLL so I can share between apps):
Any ideas?
Thanks!
- David
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
yes, don't use CImageList to load icons.
set icons directly
CXTPImageManagerIconHandle hIcon;
hIcon.CreateIconFromResource(iconInst, iconIds[x].cmd, szResourceIcon, FALSE)
XTPImageManager()->SetIcon(hIcon, cmd);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ddlittle ![]() Senior Member ![]() Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
![]() ![]() ![]() ![]() ![]() |
That worked great for everything except for the report column icons. Those come from an image list and I don't see a method in CXTPReportColumn that uses an icon. Any ideas on that?
Thanks! I was thinking I was going to have to have somebody redraw all my icons...
- David
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
use wndReportControl.GetImageManager() to get ImageManager of report.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ddlittle ![]() Senior Member ![]() Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
![]() ![]() ![]() ![]() ![]() |
Cool, that works fine as long as I only load the 16x16 size, but that's the size I need anyway. Now my app is very nice looking.
![]() - David
|
|
![]() |
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 |