Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Docking Panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking Panes

 Post Reply Post Reply
Author
Message
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Topic: Docking Panes
    Posted: 06 January 2009 at 4:34am
Hi
 
How can we dynamically hide/show docking panes from within our application please
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2009 at 7:24am
Here's the code I use to toggle panes by ID. This should be enough to get you what you need.

Note that most of the methods can also take a CXTPDockingPane*.


void CMainFrame::TogglePane(int id)
{
    if (m_paneManager.IsPaneClosed(id))
        m_paneManager.ShowPane(id);
    else if (m_paneManager.IsPaneHidden(id))
        m_paneManager.ToggleAutoHide(m_paneManager.FindPane(id));
    else
        m_paneManager.ClosePane(id);
}


HidePane() is also available.

Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)

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