Print Page | Close Window

Trouble with toolbar 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=11206
Printed Date: 15 November 2025 at 6:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trouble with toolbar icons
Posted By: debugx
Subject: Trouble with toolbar icons
Date Posted: 25 June 2008 at 10:44am
Hello All,
I created simple toolbar with icons via resource editor.
But first icon on first toolbar button is not displayed.
please look at the attached source code. There is simplest clean MDI application with toolbar.
Thanks you.
uploads/20080625_104416_ToolbarTester01.zip - uploads/20080625_104416_ToolbarTester01.zip


-------------
"Один законник с портфелем в рукаm



Replies:
Posted By: Oleg
Date Posted: 25 June 2008 at 3:38pm
Hi,
 
Yes, by default ImageManager use TopLeft pixel as tansparent. So it thinks you want "White" color to be transparent color.
 
As solution add before you load toolbar

pCommandBars->GetImageManager()->SetMaskColor(0);



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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