Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Dialog within a Docking Pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dialog within a Docking Pane

 Post Reply Post Reply
Author
Message
Indrajit View Drop Down
Newbie
Newbie
Avatar

Joined: 17 July 2004
Location: Australia
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Indrajit Quote  Post ReplyReply Direct Link To This Post Topic: Dialog within a Docking Pane
    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

Back to Top
brucesinner View Drop Down
Newbie
Newbie
Avatar

Joined: 19 July 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote brucesinner Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Indrajit View Drop Down
Newbie
Newbie
Avatar

Joined: 17 July 2004
Location: Australia
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Indrajit Quote  Post ReplyReply Direct Link To This Post 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

I will try out your suggestion later today.

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

 

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.219 seconds.