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
MGebler View Drop Down

Joined: 18 May 2006
Location: Germany
Status: Offline
Points: 61
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.093 seconds.