Problem with custom control in docking pane |
Post Reply |
Author | |
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
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?
Michael
|
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi;
Did you derive the dialog from CXTResizeDialog? |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
Hi Martin,
Yes, I did. I derive all of them from CXTResizeDialog.
Michael
|
|
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
|
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?
Michael
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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
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 |