Print Page | Close Window

Application hangs after calling LoadSkin

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7496
Printed Date: 01 June 2025 at 5:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Application hangs after calling LoadSkin
Posted By: MacW
Subject: Application hangs after calling LoadSkin
Date 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?





Replies:
Posted By: Oleg
Date Posted: 02 July 2007 at 4:25am
Hi,
 
Can you please attach this project ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: MacW
Date 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.


Posted By: MacW
Date 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.


Posted By: Oleg
Date 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



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