Udostępnij za pośrednictwem


CMDIFrameWndEx::EnableAutoHidePanes

Enables auto-hide mode for panes when they are docked at the specified sides of the main frame window.

BOOL EnableAutoHidePanes(
   DWORD dwDockStyle 
);

Parameters

  • [in] dwDockStyle
    Specifies the sides of the main frame window that will be enabled. Use one or more of the following flags.

    • CBRS_ALIGN_LEFT

    • CBRS_ALIGN_RIGHT

    • CBRS_ALIGN_TOP

    • CBRS_ALIGN_BOTTOM

Return Value

Call this function to enable auto-hide mode for panes when they are docked at the specified sides of the main frame window.

Example

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

  EnableAutoHidePanes(CBRS_ALIGN_ANY);

Requirements

Header: afxMDIFrameWndEx.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMDIFrameWndEx Class