Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - MDI parent not skinned?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MDI parent not skinned?

 Post Reply Post Reply
Author
Message
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Topic: MDI parent not skinned?
    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.

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.

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.