![]() |
Theme |
Post Reply ![]() |
Author | |
erik1 ![]() Newbie ![]() Joined: 13 January 2022 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 13 January 2022 at 5:11am |
Hello, recently I updated from 19.1.0 version to 20.1.0 version, but few problems with themes appeared. I found that probles are with loading and unloading themes in XTPSkinManager.cpp. void CXTPSkinManagerClass::BindTheme(HTHEME hTheme) { m_themeClasses.SetAt(hTheme, this); } void CXTPSkinManagerClass::UnbindTheme(HTHEME hTheme) { m_themeClasses.RemoveKey(hTheme); } Few items like tabs have this problem, others are ok. Description of problem: Tab themes are created with same HTHEME, so TAB theme is added to m_themeClasses only once. When I open new window with TABS, new TAB themes want to be added to m_themeClasses, but they are not added because they have same HTHEME. When I close this new window TAB theme is deleted from m_themeClasses. Because in m_themeClasses is TAB theme only once, TAB theme is completly deleted from m_themeClasses. So after new window is closed and focus returns to application, TABS are without theme (the are greyed). in 19.1.0 version themes works ok. |
|
![]() |
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 |