Print Page | Close Window

Skinning the parent window

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=7487
Printed Date: 07 July 2025 at 12:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinning the parent window
Posted By: Synapse
Subject: Skinning the parent window
Date Posted: 29 June 2007 at 5:59am
Hi,
I've got a problem : when I apply a skin to a dialog box, the parent window is also partially skinned and that gives me awfull things.
For exemple, I'm working on a Microsoft Word addin. It's a dll called by a Word macro, and that display a dialog box. I use Codejock to skin the dialog box.
Here's the code I added to the dialog box.
In the constructor :
XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);
In the OnCreate() method :
CString strStylePath = "C:\\Program Files\\Codejock Software\\MFC\\Xtreme Skin Framework v11.1.3\\Bin\\vc71\\styles\\iTunes\\";
        XTPSkinManager()->LoadSkin(strStylePath, _T("Normalitunes.ini"));
       
        RedrawWindow(0, 0, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_ALLCHILDREN);  

The skin works perfectly on the dialog box, but the parent window (that is to say the Microsoft Word's window), is modified after the display of the dialog.
Word's window before :




Word's window after :




(the screenshots have been made with the iTune skin)

How can I fixe that ?
Thank you.


-------------
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2



Replies:
Posted By: Oleg
Date Posted: 30 June 2007 at 4:06am
Hello,
 
If you plan use skinned and not skinned windows, you have not set xtpSkinApplyColors apply option:
XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | /*xtpSkinApplyColors |*/ xtpSkinApplyMetrics);
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Synapse
Date Posted: 02 July 2007 at 3:35am
Thank you, now it's correct.

-------------
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2



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