Print Page | Close Window

How to change a pane to view?

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=3303
Printed Date: 09 November 2025 at 1:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change a pane to view?
Posted By: freehawk
Subject: How to change a pane to view?
Date 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)
 {  
  CXTPDockingPaneTabbedContainer* pContainer = (CXTPDockingPaneTabbedContainer*)lParam;

   CXTPDockingPane* pPane = pContainer->GetSelected();
  if (!pPane) return TRUE;

  m_MTIClientWnd.AddItem((CWnd*)pPane);   ;  
  return TRUE;
 }

 return FALSE;
}

Thanks.

-Freehawk




Replies:
Posted By: Oleg
Date Posted: 30 November 2005 at 1:29am

Hi,

See Samples\ToolkitPro\MDITabWindow



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: freehawk
Date 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 ?

Originally posted by oleg oleg wrote:

Hi,

See Samples\ToolkitPro\MDITabWindow



Posted By: Oleg
Date 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



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