Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - BUG: Dialog frames are no longer skinned in v24
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Dialog frames are no longer skinned in v24

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Online
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Dialog frames are no longer skinned in v24
    Posted: 2 hours 33 minutes ago at 3:52am
Hi;

After upgrading our applications to v24 of the toolkit, the frames of all dialogs used in the apps are no longer skinned.
We didn't change the skinning initialization, but we recompiled the whole library with XTP_SKINFRAMEWORK_USE_LEGACY_API_HOOK preprocessor define. We need this flag because 3rd party components lead to crashes on shutdown when not excluded from skinning.

Here's the code:

       XTPSkinManager()->ExcludeModule(L"Module1.DLL");
       XTPSkinManager()->ExcludeModule(L"Module2.DLL");

        XTPResourceManager()->SetResourceHandle(AfxGetInstanceHandle());
        XTPResourceImages()->SetHandle(AfxGetInstanceHandle(), _T("OFFICE2010SILVER.INI"));

        std::wstring StylesPath = GetModuleDirectory();
        StylesPath.append(L"Styles\\Office2010.cjstyles"); //

        if (XTPSkinManager()->LoadSkin(StylesPath.c_str(), L"NORMALSILVER.INI")) {
          XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics | xtpSkinApplyMenus);
          XTPSkinManager()->GetResourceFile()->SetModuleHandle(AfxGetInstanceHandle());

          XTPSkinManager()->SetAutoApplyNewThreads(false);
          XTPSkinManager()->SetAutoApplyNewWindows(true);
        }

Any help in fixing this problem is welcome.
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
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.125 seconds.