Print Page | Close Window

How to apply the SkinFramework on a non-MFC app ?

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=23450
Printed Date: 22 November 2024 at 1:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to apply the SkinFramework on a non-MFC app ?
Posted By: tomay3000
Subject: How to apply the SkinFramework on a non-MFC app ?
Date Posted: 23 September 2017 at 1:47pm
Hello,
I have a non-MFC application (wxWidgets app), which is a pure Windows API framework.
I wonder if it is possible to apply the skin framework using only the shared library (the .DLL one)  dynamically and redefine LoadSkin function with non-MFC data types!
BOOL LoadSkin(LPCTSTR lpszResourcePath, LPCTSTR lpszIniFileName = NULL);
_XTP_EXT_CLASS CXTPSkinManager* AFX_CDECL XTPSkinManager();
Will this work ?
Thank you for your understanding.


-------------
Product: Codejock ToolkitPro MFC v16.2.0
Platform: Microsoft Windows 8 Pro (64-bit)

Language: Microsoft Visual C++ v6.0 (MFC)



Replies:
Posted By: olebed
Date Posted: 24 September 2017 at 9:07am
Hello tomay3000,

SkinFramework hooks almost all calls to drawing. It exchange addresses in all loaded DLLs and in application with addresses of functions from in SkinFramework library. You can find what exactly functions and DLLs hooks SkinFramework in array CXTPSkinManagerApiHook::m_apiHookInfos[] (Source\SkinFramework\XTPSkinManagerApiHook.cpp).  If wxWidgets uses the same libs and functions to drawing  then SkinFramework can hook it.

Regards,
 Oleksandr Lebed


Posted By: tomay3000
Date Posted: 24 September 2017 at 12:04pm
Thanks for the reply, I will try to dig a little bit in the source code and see if I can generate a header file with all required definitions to use with my Windows API application

-------------
Product: Codejock ToolkitPro MFC v16.2.0
Platform: Microsoft Windows 8 Pro (64-bit)

Language: Microsoft Visual C++ v6.0 (MFC)



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