Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [solved] Checked Controls in Quick Access Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Checked Controls in Quick Access Toolbar

 Post Reply Post Reply
Author
Message
MGebler View Drop Down
Groupie
Groupie


Joined: 18 May 2006
Location: Germany
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote MGebler Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Checked Controls in Quick Access Toolbar
    Posted: 12 August 2017 at 6:45am
In the Office 2013/2016 theme checked control items are hard to identify because the background rect remains in the color of the toolbar.



But shouldn't it look like this:



Therefore we would need another else-branch, which handles the checked-state of the control 

void CXTPRibbonOffice2013Theme::DrawQuickAccessControl(CDC *pDC, CXTPRibbonBar* pRibbon, CXTPControl* pControl)
{
  ...

  else if (bPressed || bPopuped )
    pDC->FillSolidRect(rcButton, m_clrQuickAccessButtonPressedBack);
  else if( bChecked )
     pDC->FillSolidRect(rcButton, m_clrQuickAccessButtonHotBack);

  ...
}

With best regards
 Marcus
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.