Print Page | Close Window

20.0 beta & Win 10 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=24161
Printed Date: 12 May 2024 at 10:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 20.0 beta & Win 10 theme
Posted By: rconn
Subject: 20.0 beta & Win 10 theme
Date Posted: 18 May 2021 at 9:29pm
I tried to add the new Win 10 theme to my app. When I select it, I get a crash in CXTPStatusBarThemeResource::FillStatusBar on this:

// Fill light background.
CXTPResourceImage* pLightImage = XTPResourceImages()->LoadFile(_T("STATUSBARLIGHT"));
ASSERT(NULL != pLightImage);

The Win 10 ini files do not have "statusbarlight" or "statusbardark" - should they? Or is the status bar drawn differently somehow for the Win 10 theme?




Replies:
Posted By: dbrookes
Date Posted: 24 May 2021 at 12:58am
My guess would be your status bar isn't using the correct paint manager theme. It looks like the status bar gets that from the command bars paint manager if command bars are set.

Try call m_wndStatusBar.SetCommandBars(pCommandBars) after you create it. Then the status bar should use the native Windows 10 theme once the command bars theme changes.

I think :)

Regards,
Daniel.


Posted By: rconn
Date Posted: 24 May 2021 at 4:52pm
I am calling m_wndStatusBar.SetCommandBars -- the status bar gets the correct theme for everything except Win 10 (which asserts because the images are missing from the win10 dll).



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