20.0 beta & Win 10 theme |
Post Reply |
Author | |
rconn
Groupie Joined: 16 May 2007 Location: United States Status: Offline Points: 77 |
Post Options
Thanks(0)
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? |
|
dbrookes
Groupie Joined: 30 August 2019 Location: Australia Status: Offline Points: 70 |
Post Options
Thanks(0)
|
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.
|
|
rconn
Groupie Joined: 16 May 2007 Location: United States Status: Offline Points: 77 |
Post Options
Thanks(0)
|
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).
|
|
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 |