Print Page | Close Window

Problem with custom control in docking pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
Printed Date: 18 August 2022 at 1:15pm
Software Version: Web Wiz Forums 12.04 -

Topic: Problem with custom control in docking pane
Posted By: MichaelN
Subject: Problem with custom control in docking pane
Date Posted: 01 October 2010 at 8:25pm
I have hit a snag creating a custom control in a docking pane. I converted a dialog that's been used forever in our app into a docking pane. This dialog uses a custom control. The dialog's OnInitDialog() method calls the control's CWnd::CreateEx(). When I run the app and try to open the pane, the pane slides down about 1/10 of its opened height and the opening thread locks at that point. It appears to be in an infinite loop.
Any ideas how to fix this?

Posted By: mgampi
Date Posted: 02 October 2010 at 7:11am

Did you derive the dialog from CXTResizeDialog?


Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017

Posted By: MichaelN
Date Posted: 02 October 2010 at 10:49am
Hi Martin,
Yes, I did. I derive all of them from CXTResizeDialog.

Posted By: MichaelN
Date Posted: 02 October 2010 at 7:12pm
One more thing: The CWnd::CreateEx() inside the derived class returns 0. I tried breaking on that and single stepping through the bowels of MFC but that didn't reveal anything obvious.
I'm still wondering if there is a thread issue. Has anyone reading this created a custom control dynamically inside a dialog based CDocking Pane?

Posted By: Oleg
Date Posted: 04 October 2010 at 2:49am
Maybe you need register window class for this custom window. or something like that.
Difficult to answer without debugging... try to isolate problem with our sample and attach it.

Oleg, Support Team

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 -
Copyright ©2001-2021 Web Wiz Ltd. -