Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - No button checked background on Light Gray theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No button checked background on Light Gray theme

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: No button checked background on Light Gray theme
    Posted: 27 July 2021 at 5:09pm
With the QAT at the top of the ribbon when using Office 2013 Light Gray, checked buttons have no background highlighted. The problem appears to be with the m_clrQuickAccessButtonPressedBack member of the CXTPCommandBarsOffice2013Theme. The DrawRectangle method is using this color as 0xf1f1f1. That also happens to be the color of the caption area the QAT sits on.

If the QAT is below the ribbon and the button being drawn is on the QAT, the above mentioned method returns FALSE and the image is drawn in a version/overload of CXTPCommandBarsOffice2013Theme::DrawRectangle. That method calls:

 CXTPColorSetStateButton* pColorSet = GetButtonColorSet(barType);

The call to draw the background is then made using pColorSet->clrBackChecked which is 0xf2d5c2.

Is this fixed in a version later than 19.3?
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.188 seconds.