Print Page | Close Window

BUG: Dialog frames are no longer skinned in v24

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=24509
Printed Date: 21 November 2024 at 6:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: Dialog frames are no longer skinned in v24
Posted By: mgampi
Subject: BUG: Dialog frames are no longer skinned in v24
Date Posted: 15 October 2024 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net