![]() |
CXTPStatusbar Problem |
Post Reply
|
| Author | |
prashant
Senior Member
Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPStatusbar ProblemPosted: 25 July 2007 at 7:04am |
|
Hi,
I am facing problem in setting status bar theme/color with following code. if (m_wndStatusBar.GetSafeHwnd() == NULL) m_wndStatusBar.CreateBar(); COLORREF clr = XTPColorManager()->grcDockBar.clrDark; m_wndStatusBar.GetStatusBarCtrl().SetBkColor(clr); Function CreateBar() { // Locals. CMainFrame *frame; frame = (CMainFrame *)CWnd::FromHandlePermanent(hWndPim); if (!Create(frame) || !SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) { TRACE0("Failed to create status bar\n"); return -1; // fail to create } } Using this code also, I am not getting new color to the status bar. Please guide me, thanks in advance ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 July 2007 at 8:44am |
|
Hi, CXTPStatusBar doesn't use of CStatusbarCtrl::GetBkColor - it uses themed colors. As I remember there was some sample in forum, please use search.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |