Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Too dark color used in flat toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Too dark color used in flat toolbar

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: Too dark color used in flat toolbar
    Posted: 23 May 2017 at 7:01am
Hello;

I use a toolbar in a dialog and create it as streched and with no border using black office 2010 theme:
  CXTPCommandBars* CommandBars = GetCommandBars();
  CommandBars->SetTheme(xtpThemeResource);
  Toolbar_.SetCommandBars(CommandBars);
  VERIFY(Toolbar_.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, this));
  VERIFY(Toolbar_.LoadToolBar(IDR_TOOLBAR));
  Toolbar_.ShowExpandButton(FALSE);
  Toolbar_.SetFlags(xtpFlagAlignTop|xtpFlagStretched|xtpFlagNoBorders);


The toolbar background is almost as dark as the labels. Therefor it's hard to read them!



When I remove the xtpFlagNoBorder flag the background is lighter and the colors differ much better. But without the flag the edges look ugly inside my dialog box:



I want to get the background as drawn in the second screenshot, but with the overall appearance as in the first screenshot. Is this a bug or not?

How?

TIA


Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.172 seconds.