Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Restore a Maximized tiled docking Pane.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Restore a Maximized tiled docking Pane.

 Post Reply Post Reply
Author
Message
vintrip View Drop Down
Newbie
Newbie


Joined: 20 November 2007
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote vintrip Quote  Post ReplyReply Direct Link To This Post Topic: Restore a Maximized tiled docking Pane.
    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);

        }

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.172 seconds.