Dialog within a Docking Pane |
Post Reply |
Author | |
Indrajit
Newbie Joined: 17 July 2004 Location: Australia Status: Offline Points: 5 |
Post Options
Thanks(0)
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, |
|
brucesinner
Newbie Joined: 19 July 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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 |
|
Indrajit
Newbie Joined: 17 July 2004 Location: Australia Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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!
|
|
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 |