![]() |
How to change the CXTPStatusBar Theme !? |
Post Reply ![]() |
Author | |
tomay3000 ![]() Groupie ![]() ![]() Joined: 08 December 2010 Location: Algeria Status: Offline Points: 56 |
![]() ![]() ![]() ![]() ![]() Posted: 01 July 2013 at 11:43pm |
I have declared a new theme for CXTPStatusBar { public: void FillStatusBar(CDC* pDC, CXTPStatusBar* pStatusBar) { pDC->FillSolidRect(CXTPClientRect(pStatusBar), XTPColorManager()->grcDockBar.clrDark); //XTPDrawHelpers()->GradientFill(pDC, CXTPClientRect(pStatusBar), XTPColorManager()->grcDockBar, FALSE); // Or Gradient. } }; Then on CMainFrame::OnCreate(), I have called: CXTPPaintManager::SetCustomTheme(new CXTPStatusBarOffice2003Theme()); But unfortunately, the theme appears non changeable. What is the problem here !? Thank you for you understanding.
|
|
Product: Codejock ToolkitPro MFC v16.2.0
Platform: Microsoft Windows 8 Pro (64-bit) Language: Microsoft Visual C++ v6.0 (MFC) |
|
![]() |
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 |