Print Page | Close Window

[solved] Checked Controls in Quick Access Toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23414
Printed Date: 29 March 2024 at 5:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Checked Controls in Quick Access Toolbar
Posted By: MGebler
Subject: [solved] Checked Controls in Quick Access Toolbar
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net