![]() |
How to change a pane to view? |
Post Reply
|
| Author | |
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
Topic: How to change a pane to view?Posted: 29 November 2005 at 8:03pm |
|
Hello. I made a docking pane displayed when the program is done. when right-clicked the title bar of docking pane, I want to attath the pane to tabbed MDI window simply, is there simply way to realize it? My source code is as the following: LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam) if (wParam == XTP_DPN_RCLICK) CXTPDockingPane* pPane = pContainer->GetSelected(); m_MTIClientWnd.AddItem((CWnd*)pPane);   ; return FALSE; Thanks. -Freehawk |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2005 at 1:29am |
|
Hi, See Samples\ToolkitPro\MDITabWindow |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
freehawk
Groupie
Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2005 at 2:02am |
|
I saw it. In the sample I need to create a CMultiDocTemplate at first, and then change the view to docking pane. But I dont want to do as it. I want to make a docking pane simple at first, and then change it to view. Is there simply way to realize it ?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 November 2005 at 2:54am |
|
All you need is understand how MainFrame::DockFrame, CMainFrame::UnDockFrame work in this sample ... and hand of course.. |
|
|
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 |