Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ComCtl32 broken in v12!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComCtl32 broken in v12!

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: ComCtl32 broken in v12!
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 1:17am
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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 4:42am
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?).
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 4:55am

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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 6:19am
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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 1:55am
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
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.172 seconds.