Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Trouble with toolbar icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trouble with toolbar icons

 Post Reply Post Reply
Author
Message
debugx View Drop Down
Groupie
Groupie
Avatar

Joined: 23 June 2008
Location: Andorra
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote debugx Quote  Post ReplyReply Direct Link To This Post Topic: Trouble with toolbar icons
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.047 seconds.