Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Toolbar part of commandbar background
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar part of commandbar background

 Post Reply Post Reply
Author
Message
TheMojoHand View Drop Down
Newbie
Newbie


Joined: 17 April 2018
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote TheMojoHand Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar part of commandbar background
    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?


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.141 seconds.