Print Page | Close Window

Status window

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5128
Printed Date: 11 November 2025 at 5:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Status window
Posted By: garylyb
Subject: Status window
Date Posted: 23 September 2006 at 9:29am
Hi
 
I've got 10.3.1, and have some CEdit controls in the CXTPStatusBar.
 
The background color is always grey for the controls, even in a ribbon theme.
 
Is there any way to change that?
 
Thanks
 
Gary
 



Replies:
Posted By: Oleg
Date Posted: 23 September 2006 at 10:31am
Hi,
 
See in MSDN ON_WM_CTLCOLOR_REFLECT( ) macros.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: garylyb
Date Posted: 24 September 2006 at 10:11am
OK, here's the code that seems to work:
 
HBRUSH CTestView::CtlColor(CDC* pDC, UINT /*nCtlColor*/){

CMainFrame *pMain = (CMainFrame *)theApp.m_pMainWnd;

COLORREF col = pMain->GetCommandBars()->GetPaintManager()->GetXtremeColor(XPCOLOR_TOOLBAR_FACE);

m_brBkgnd.DeleteObject();

m_brBkgnd.CreateSolidBrush( col );

return m_brBkgnd; }

 
This is in the class header:
 
CBrush m_brBkgnd;
 
 



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