Print Page | Close Window

32-bit color in CXTToolbar

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=206
Printed Date: 22 December 2024 at 5:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 32-bit color in CXTToolbar
Posted By: mgertner
Subject: 32-bit color in CXTToolbar
Date Posted: 20 October 2003 at 11:36am

Hi,

In our application we use CXTFrameWnd for our main window, with an embedded CXTToolbar member for our toolbar. We have been using a 32-bit color bitmap (i.e. w/alpha channel) as the toolbar bitmap. On the surface, this appears to work fine, although the alpha channel doesn't seem to be handled properly under Windows XP since some of the button images have a somewhat noticeable jagged white border.

Recently I encountered what I thought was an unrelated problem; a crash at program termination in OleUninitialize(). After 2 days of investigating, I finally established that the problem occurs when I perform a certain sequence of actions in a CHtmlView (not sure how relevant that is). The crash only occurs, however, when the aforementioned bitmap is loaded into the toolbar. When I commented out the single line that loads the bitmap, the crash went away.

What is the status of 32-bit bitmaps in CXTToolbar? Are there known problems with this? If it is meant to work, are there guidelines on how to a) make sure the toolbar is displayed properly with the alpha channel and b) avoid the OLE termination crash. The crash is a little strange but I can provide an example that reproduces it consistently.

Thanks in advance,
Matt

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net