Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Problem with custom control in docking pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with custom control in docking pane

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


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: Problem with custom control in docking pane
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2010 at 7:11am
Hi;

Did you derive the dialog from CXTResizeDialog?
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2010 at 10:49am
Hi Martin,
 
Yes, I did. I derive all of them from CXTResizeDialog.
 
Michael
Back to Top
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post 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?
 
Michael
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: 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
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.203 seconds.