Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Status window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Status window

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


Joined: 23 August 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote garylyb Quote  Post ReplyReply Direct Link To This Post Topic: Status window
    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
 
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2006 at 10:31am
Hi,
 
See in MSDN ON_WM_CTLCOLOR_REFLECT( ) macros.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
garylyb View Drop Down
Newbie
Newbie


Joined: 23 August 2006
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote garylyb Quote  Post ReplyReply Direct Link To This Post 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;
 
 
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.064 seconds.