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

Skinning the parent window

 Post Reply Post Reply
Author
Message
Synapse View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Synapse Quote  Post ReplyReply Direct Link To This Post Topic: Skinning the parent window
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Synapse View Drop Down
Groupie
Groupie


Joined: 28 June 2007
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Synapse Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2007 at 3:35am
Thank you, now it's correct.
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2
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.141 seconds.