16bit desktop color + alpha icons??
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=869
Printed Date: 14 July 2025 at 5:19am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: 16bit desktop color + alpha icons??
Posted By: Ark42
Subject: 16bit desktop color + alpha icons??
Date Posted: 21 June 2004 at 1:51pm
None of the functions fail, but none of the icons display, they are all blank, if the desktop color is set to 16bit.
It also spews out a lot of junk like:
Failed -- Memory exception thrown.Failed -- Memory exception
thrown.Failed -- Memory exception thrown.Failed -- Memory exception
thrown.Failed -- Memory exception thrown.Failed -- Memory exception
thrown.Failed -- Memory exception thrown.Failed -- Memory exception
thrown.First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363:
Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Test.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
Everything works fine in 32bit color mode though.
I tried XTPImageManager()->SetIcons(IDR_ALPHA_ICONS,
nIDMenuBarI cons, _countof(nIDMenuBarIcons), CSize(16, 16),
xtpImageNormal) and also:
CBitmap &bmAlphaIcons =
*CBitmap::FromHandle((HBITMAP)::LoadImage(AfxGetApp()-> ;m_hInstance,
MAKEINTRESOURCE(IDR_ALPHA_ICONS), IMAGE_BITMAP, 0, 0,
LR_CREATEDIBSECTION));
XTPImageManager()->SetIcons(bmAlphaIcons, nIDMenuBarIcons,
_countof(nIDMenuBarIcons), CSize(16, 16), xtpImageNormal,
XTPImageManager()->IsAlphaIconsSupported ())
but both get the same results.
|
Replies:
Posted By: Ark42
Date Posted: 21 June 2004 at 3:50pm
The problem is all the dcSrc.CreateCompatibleDC(NULL); scattered in
CXTPImageManagerIcon since NULL is creating a DC compatible with the
current screen mode. My video card does not have a 24bit mode,
but I suspect that even that would break alpha channel the same as
16bit mode. You probably have to actually be in a 32bit graphics
color mode or it will break.
Is this going to be fixed in the next version, it seems like a very
major bug? Is there any date set yet for the next version? I have a
program about ready to be released, but I can't yet since it won't work
on anybody's system who is set to 16bit color.
|
Posted By: Oleg
Date Posted: 21 June 2004 at 10:54pm
It was fixed. Write me and I'll send you fixed files.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: Ark42
Date Posted: 21 June 2004 at 10:56pm
Posted By: Ark42
Date Posted: 25 June 2004 at 1:20am
I got this update (pays to be on the yearly support contract, doesn't it ) - it works nice. Thanks again!
|
Posted By: ICBM
Date Posted: 28 June 2004 at 3:27am
oleg wrote:
It was fixed. Write me and I'll send you fixed files.
|
Hi
I'd like this fix too. How do I email you ? Or... email it to me at: ian-at-bevantech.com (yes, I do have a yearly subscription !)
|
Posted By: CSTL
Date Posted: 29 June 2004 at 3:58am
Hi,
I just purchased the software and I have several questions.
1. Does the alpha icons work on other operating systems besides WinXP?
2. Does the video mode have to be set at 32 bits for the alpha icons to work?
3. Is there any documentation/samples on how to use CXTPImageManager? It seems to be missing from the help files.
4. Lastly, where can I get a fix for this?
Thanks.
|
Posted By: Oleg
Date Posted: 29 June 2004 at 6:28am
1. for all (for win95 and nt4 you must deliver msimg32.dll)
2. in last release was problem with win2000+16bit mode. the fix will be included in next product release.
3. open XTPImageManager.h and see members :)
4. Please wait next version.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: ICBM
Date Posted: 29 June 2004 at 6:01pm
CSTL wrote:
It seems to be missing from the help files.
|

You must be new around here....
|
Posted By: Oleg
Date Posted: 29 June 2004 at 10:57pm

------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: CSTL
Date Posted: 30 June 2004 at 3:00am
ICBM wrote:
CSTL wrote:
It seems to be missing from the help files.
|

You must be new around here....
|
Yeah, I just started using this tookit. So how long does it take to get an update patch around here? 
|
Posted By: kstowell
Date Posted: 01 July 2004 at 11:59am
Hello,
If you contact support, they will provide you with a pre-release version: https://www.codejock.com/support/index.asp - https://www.codejock.com/support/index.asp
The next release will be ready within the next few days.
Regards, Codejock Support
|
Posted By: ICBM
Date Posted: 04 July 2004 at 10:53pm
CSTL wrote:
ICBM wrote:
CSTL wrote:
It seems to be missing from the help files.
|

You must be new around here....
|
Yeah, I just started using this tookit. So how long does it take to get an update patch around here? 
|
Email support is pretty good. Typical response time is 1-2 days for an initial enquiry. Forum support is patchy at best. Documentation is, beyond a shadow of a doubt, utterly appalling and really completely inexcusable. I've heard they are re-writing it, but I don't know when we'll see the fruits of those labours. The example code is good, but it really takes some getting into.
|
Posted By: krulle
Date Posted: 09 November 2004 at 8:19am
I still got the problem in 16-bit color depth and 32-bit bitmaps but I found a way to fix it. I hope it will help!
CBitmap bmps ;
bmps .Attach(LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_TOOLICONS), IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE | LR_CREATEDIBSECTION));
XTPImageManager ()->SetIcons(bmps, GetCommandArray(), GetCommandArraySize(), CSize(16, 16), xtpImageNormal, TRUE);
|
|