Print Page | Close Window

Header color reported is too light

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=12465
Printed Date: 21 November 2024 at 4:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Header color reported is too light
Posted By: BigMitch
Subject: Header color reported is too light
Date Posted: 16 October 2008 at 8:28pm

m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXP);

...
 
CXTPTaskPanelPaintManager* pPaintManager = m_wndTaskPanel.GetPaintManager();

XTP_TASKPANEL_GROUPCOLORS* pGroupColors = pPaintManager->GetGroupColors(TRUE);

COLORREF headerBlue = pGroupColors->clrHead.clrDark;

Trying to get the color from the "special" group header so I can set other controls in my dialog to the same color.  I tried the COLORREF cast operator also, same of course.  On my dev machine it looks a little too dark, on another machine it's way too light, almost white!
 



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