Print Page | Close Window

MDI parent not skinned?

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=7566
Printed Date: 27 November 2024 at 5:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI parent not skinned?
Posted By: Ark42
Subject: MDI parent not skinned?
Date Posted: 09 July 2007 at 7:49pm

So I added XTPSkinManager()->LoadSkin() from CMainFrame::LoadFrame() in my MDI application, but the parent is not skinned. I'm looking at SkinMDISample but I can't find what the difference is. I derive from CXTPMDIFrameWnd too and no other XTPSkinManager() things seem to be called in the SkinMDISample.

I tried adding XTPSkinManager()->ApplyWindow() but that causes some sort of infinite loop freeze I have yet to track down. Without any ApplyWindow() call all child windows and dialogs are skinned just fine.




Replies:
Posted By: Ark42
Date Posted: 09 July 2007 at 11:10pm
XTPSkinManager() stuff must exist in PreCreateWindow() or before call to parent's LoadFrame() to work properly I guess.




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