Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Application hangs after calling LoadSkin
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Application hangs after calling LoadSkin

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: Application hangs after calling LoadSkin
    Posted: 01 July 2007 at 5:03pm
Hi,

I copy/pasted code to load skins from the SDI sample app to my code.
I load a default skin (Vista) during the startup code of my app. This works fine.

I have a split frame, and one extra panel. The split from contains a Tree Control and a List View (from an XTPro sample), and the panel contains a form view. Nothing special, all just for testing.

I then copy/pasted the code to change the skin during runtime (also from the SkinMDI Sample) but when I call XTPSkinManager()->LoadSkin again, the application hangs inside

CXTPSkinObjectFrame::OnSkinChanged

when calling the

SetWindowPos(0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_DRAWFRAME);

function.

This happens with all skins supplied. What may be the reason?


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: 02 July 2007 at 4:25am
Hi,
 
Can you please attach this project ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2007 at 10:20am
Hi, Oleg

unfortunately, I'm migrating a large project to TKPro, and this project has many dependencies.

My hope was that there are some general areas to check for this problem.
I'f I cannot find it by commenting out code, I will see if I can strip it down small enough to post it here.
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2007 at 11:21am
By commenting out code, and clearing the docking frame layout all the time, I found out that the application only hangs when the pane with the embedded form view is visible.

The form view is derived from CFormView, and it is created and attached to the docking panel during the OnDockingPaneNotify call in the main frame class.

Anything special I need to consider for form views inside docking panels in conjunction with the skin framework?

The form view and all controls within are properly skinned, only later changing the skin causes the application to hang.
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: 03 July 2007 at 1:42am
Hi,
 
No, you don't need add anything. Please try to minimize project to remove all not important code to allow us test it.
 
Thanks
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.