![]() |
Trouble with toolbar icons |
Post Reply ![]() |
Author | |
debugx ![]() Groupie ![]() ![]() Joined: 23 June 2008 Location: Andorra Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() 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 |
|
"Один законник с портфелем в рукаm
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |