![]() |
Application hangs after calling LoadSkin |
Post Reply ![]() |
Author | |
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Can you please attach this project ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |