Print Page | Close Window

Restore a Maximized tiled docking Pane.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10030
Printed Date: 21 May 2024 at 11:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Restore a Maximized tiled docking Pane.
Posted By: vintrip
Subject: Restore a Maximized tiled docking Pane.
Date 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);

        }




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