Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Theme

 Post Reply Post Reply
Author
Message
erik1 View Drop Down
Newbie
Newbie


Joined: 13 January 2022
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote erik1 Quote  Post ReplyReply Direct Link To This Post Topic: Theme
    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.

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.063 seconds.