![]() |
Status window |
Post Reply
|
| Author | |
garylyb
Newbie
Joined: 23 August 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Status windowPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 September 2006 at 10:31am |
|
Hi,
See in MSDN ON_WM_CTLCOLOR_REFLECT( ) macros.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
garylyb
Newbie
Joined: 23 August 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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;
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |