Share via


CMDIFrameWndEx::ShowPane

Shows or hides the specified pane.

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

Parameters

  • [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.

Remarks

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

Example

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->SetFocus();
        pMainFrame->ShowPane(pParentBar, FALSE, FALSE, FALSE);
    }
}

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart