Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - 20.0 beta & Win 10 theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

20.0 beta & Win 10 theme

 Post Reply Post Reply
Author
Message
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 74
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post Topic: 20.0 beta & Win 10 theme
    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?

Back to Top
dbrookes View Drop Down
Groupie
Groupie


Joined: 30 August 2019
Location: Australia
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbrookes Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
rconn View Drop Down
Groupie
Groupie


Joined: 16 May 2007
Location: United States
Status: Offline
Points: 74
Post Options Post Options   Thanks (0) Thanks(0)   Quote rconn Quote  Post ReplyReply Direct Link To This Post 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).
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.