Collapse the table of content
Expand the table of content



Shows or hides the specified pane.

void ShowPane(
   CBasePane* pBar,
   BOOL bShow,
   BOOL bDelay,
   BOOL bActivate 

[in] pBar

Pointer to the pane to be shown or hidden.

[in] bShow

TRUE to show the pane. FALSE to hide the pane.

[in] bDelay

TRUE to delay the recalculation of the docking layout. FALSE to recalculate the docking layout immediately.

[in] bActivate

TRUE to show the pane should as active. FALSE to show the pane as inactive.

Call this method to show or hide the pane. Do not use ShowWindow for docking panes.


The following example shows how ShowPane is used in the VisualStudioDemo Sample: MFC Visual Studio Application.

void COutputList1::OnViewOutput()
	CBasePane* pParentBar = DYNAMIC_DOWNCAST(CBasePane, GetOwner());
	CFrameWndEx* pMainFrame = DYNAMIC_DOWNCAST(CFrameWndEx, GetTopLevelFrame());

	if (pMainFrame != NULL && pParentBar != NULL)
		pMainFrame->ShowPane(pParentBar, FALSE, FALSE, FALSE);


Header: afxMDIFrameWndEx.h

© 2016 Microsoft