Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to change a pane to view?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change a pane to view?

 Post Reply Post Reply
Author
Message
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post 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)
 {  
  CXTPDockingPaneTabbedContainer* pContainer = (CXTPDockingPaneTabbedContainer*)lParam;

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

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

 return FALSE;
}

Thanks.

-Freehawk

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2005 at 1:29am

Hi,

See Samples\ToolkitPro\MDITabWindow

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
freehawk View Drop Down
Groupie
Groupie


Joined: 22 April 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote freehawk Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.031 seconds.