Print Page | Close Window

Dialog within a Docking Pane

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=952
Printed Date: 08 July 2025 at 7:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dialog within a Docking Pane
Posted By: Indrajit
Subject: Dialog within a Docking Pane
Date Posted: 17 July 2004 at 1:00am

Hi All,

I am new to using the XTreme Toolkit (version 8.60). I am trying to embed a dialog within a docking pane in a MDI application. I created the MDI application as suggested in the tutorial (MDISample). I have found a sample application which uses a CSimpleForm class (derived from CFormView) but it is a SDI application.

Any hint/advice would be really welcome as I am stuck at the moment.

Cheers,
Indrajit




Replies:
Posted By: brucesinner
Date Posted: 19 July 2004 at 4:07pm
Indrajit,

Look at the Gui_Visual71 sample in samples dir.
It has lots of Cwnd embedded in Docking Panes, the same apply to CDialogs since they are derived from CWnd.

I've done it today and it goes something like that

CMyDialog* pMyDialog = new CMyDialog;

if (pMyDialog->GetSafeHwn() == 0)
{
    if (!pMyDialog->Create(IDD_MYDIALOG, this)
    {
        TRACE("Something went wrrong");
     }
}
pPane->Attach(pMyDialog);

where pPane is a pointer to the DockingPaneManager instance.

Hope this help, be sure to check the samples out .

Regards,
Bruce Sinner


Posted By: Indrajit
Date Posted: 19 July 2004 at 7:46pm

Hello Bruce, All,

I spent some time over the weekend looking at the samples more thoroughly. This definitely helped and I also had a look at the "Xtreme Docking Pane" forum postings. I managed to get a solution suggested by Oleg, which is almost similar to the one used for the SDI sample. Here is the link to the post -

                  https://forum.codejock.com/forum_posts.asp?TID=98&KW=FormView - https://forum.codejock.com/forum_posts.asp?TID=98&KW =FormView

I will try out your suggestion later today.

Thanks a lot for your time, I appreciate your help!
Cheers,
Indrajit

 




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