Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Can Close DockingPanes Group?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can Close DockingPanes Group?

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


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post Topic: Can Close DockingPanes Group?
    Posted: 17 December 2004 at 1:52am

How can I just click the "X"button once and all dockingpanes in a group are closed, just like Visual C++ Studio 6.0's workspace!

Now I click 'X' just close a pane in panes' group, I feel inconvenient!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 20 December 2004 at 4:21am
With next version added:

CXTPDockingPaneManager::m_bCloseGroupOnButtonClick = FALSE;
CXTPDockingPaneManager::m_bHideGroupOnButtonClick = TRUE;

 

you can patch void CXTPDockingPaneTabbedContainer::OnCaptionButtonClick(CXTPDoc kingPaneCaptionButton* pButton):

if (pButton->GetID() == XTP_IDS_DOCKINGPANE_CLOSE)
 {
  if (pManager->m_bCloseGroupOnButtonClick)
  {
   POSITION pos = m_lstPanes.GetTailPosition();
   while (pos)
   {
    CXTPDockingPane* pPane = (CXTPDockingPane*)m_lstPanes.GetPrev(pos);
    
    if ((pPane->GetOptions() & xtpPaneNoCloseable) != 0)
     continue;
    
    if (!pManager->_OnAction(xtpPaneActionClosing, pPane))
    {    
     pPane->Close();     
     pManager->_OnAction(xtpPane ActionClosed, pPane);
    }
   }

  }
  else
  {  
   if (!pManager->_OnAction(xtpPaneActionClosing, pPane))
   {    
    pPane->Close();     
    pManager->_OnAction(xtpPaneAction Closed, pPane);
   }
  }
 }

 

 

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