Print Page | Close Window

Toolbar part of commandbar background

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=23660
Printed Date: 04 December 2024 at 1:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar part of commandbar background
Posted By: TheMojoHand
Subject: Toolbar part of commandbar background
Date Posted: 20 June 2018 at 4:33pm
I used a custom theme to make the menubar and toolbar background blue like so:


I did it with the following code:
void CCustomTheme::FillCommandBarEntry(CDC* pDC, CXTPCommandBar* pBar)
{
CRect rc;
pBar->GetClientRect(&rc);
pDC->FillSolidRect(rc, RGB(42, 111, 193));
}

But I want the toolbar part to have a white background, not blue. How do I separate those settings?





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