Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Toolbar background not themed correctly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar background not themed correctly

 Post Reply Post Reply
Author
Message
zrethy View Drop Down
Newbie
Newbie
Avatar

Joined: 19 June 2003
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote zrethy Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar background not themed correctly
    Posted: 08 May 2007 at 3:51am
I've inherited a toolbar class from CXTPToolbar and overridden CalcDockingLayout(). Seems that something went wrong because when using the Office2003 Theme, the toolbar background isn't gradient just a solid colour (while my other toolbars on the same app are gradient).
I wasn't able to find the code where I calculated a wrong size or something - but if I knew which lines exactly are responsible for drawing the gradient background for a toolbar it could help (I suspect it's in CXTPOffice2003Theme::FillCommandBarEntry())

TIA,
Regards,

Zsolt Rethy
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 08 May 2007 at 6:33am
Hello,
 
if your toolbar can't be docked - Office 2003 draw it flat. You can override CXTPOffice2003Theme::HasFloatingBarGradientEntry method to change it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zrethy View Drop Down
Newbie
Newbie
Avatar

Joined: 19 June 2003
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote zrethy Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2007 at 7:42am
Thanks, it turned out to be a different problem (not a CodeJock one) - just forgot to copy over some code so the gradient filling code operated on an empty rectangle (all zeros).
Regards,

Zsolt Rethy
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.172 seconds.