Skinning the parent window |
Post Reply |
Author | |
Synapse
Groupie Joined: 28 June 2007 Status: Offline Points: 22 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Synapse
Groupie Joined: 28 June 2007 Status: Offline Points: 22 |
Post Options
Thanks(0)
|
Thank you, now it's correct.
|
|
Codejock Xtrem Skin Framework 2007 11.1.3
Windows XP SP2 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |