ComCtl32 broken in v12! |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 02 May 2008 at 5:45pm |
Ok, I just confirmed this bug! The icons look ok in XTP 11.2.2, but jagged in XTP 12.0.0.
Please fix this as soon as possible! *********
Since I upgraded to v12 my alpha-blended icons (imported and added into a CImageList with ILC_COLOR32|ILC_MASK style) are jagged with that classical black border (no alpha blending). I did not change my source code, except XTP (running XP SP3 + VS 2008). Could this be a ComCtl32-bug in XTP 12? I know this is a issue with ComCtl32 5.x...
The manifest is correctly defined, and in the debug window I can see that the DLL is indeed loaded. What could be wrong?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Need to test what you do to answer. But I very not recommend use CImageList+ILC_COLOR32 to import to ImageManager. ILC_COLOR32 only supported in WindowsXP, but ImageMaanger support Alpha icons for all OS. better add icons directly
XTPImageManager()->SetIcons(...);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Can you do that with the report control? In any way, XTP 12 has broken some kind of alpha-support (perhaps you removed/changed the manifest?).
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, Give me bitmap you use, code you have to set it. etc. we need to test it.
p.s. Add in your app
BOOL bSupported = XTPImageManager()->IsAlphaIconsImageListSupported();
bSupported is TRUE ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Will test it later. However, I just recalled this:
I have a ribbon application where I set the icon of an item using SetCustomIcon. The icon is a general 32bit-icon loaded via the ExtractIcons-API found here:
Great function by the way. Download it and apply this patch:
Line 479 in ExtractIcon.cpp:
if( (magic[1] == MAGIC_ICON || magic[1] == MAGIC_CUR ) && should be: if( (magic[1] == MAGIC_ICO1 || magic[1] == MAGIC_CUR ) && I can make a sample later, but this should not be too hard to test.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
We have own LoadAlphaIcon code in our ImageManager....
also try set breakpoint after line
if (CXTPImageManager::IsAlphaIconsImageListSupported() && GetIconInfo(hHandle.m_hIcon, &iconInfo))
if it was not executed - you don't have manifest.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |