Print Page | Close Window

How to change the CXTPStatusBar Theme !?

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=21762
Printed Date: 11 September 2025 at 8:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change the CXTPStatusBar Theme !?
Posted By: tomay3000
Subject: How to change the CXTPStatusBar Theme !?
Date Posted: 01 July 2013 at 11:43pm
I have declared a new theme for CXTPStatusBar

class CXTPStatusBarOffice2003Theme : public CXTPCommandBarsOffice2003Theme
{
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)



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