Restore a Maximized tiled docking Pane. |
Post Reply |
Author | |
vintrip
Newbie Joined: 20 November 2007 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 01 April 2008 at 12:25pm |
Dear Readers, I have three docking panes
| PANE1 | PANE2 | PANE3 |
After User has maximized the PANE1, on certain event I want to restore the Pane1, so that other panes are visible. I have tried many things such as attached below.
Can anyone help me in maximizing and restoring pane docked in client area programmatically. It can be done by manually clicking the restore button on the visible pane.
class CFriendlyXTPDockPaneTabContainer: private CXTPDockingPaneTabbedContainer{ friend class CMyView;}; void CMyView::OnBringToFront()
{
CXTPDockingPane* pPane = m_pPaneManager->FindPane(m_nID); CXTPDockingPaneCaptionButton* pButton = pPane->FindCaptionButton(XTP_IDS_DOCKINGPANE_MAXIMIZE);
if(pButton) { ((CFriendlyXTPDockPaneTabContainer*)pPane) ->OnCaptionButtonClick(pButton);
} pButton = x->m_pPaneManager->GetTopPane() ->FindCaptionButton(XTP_IDS_DOCKINGPANE_RESTORE);
if(pButton) {
((CFriendlyXTPDockPaneTabContainer*) (m_pPaneManager->GetTopPane())) ->OnCaptionButtonClick(pButton);
} } |
|
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 |