CFrameWndEx::EnablePaneMenu

Enables or disables the automatic handling of the pane menu.

void EnablePaneMenu(
   BOOL bEnable,
   UINT uiCustomizeCmd,
   const CString& strCustomizeLabel,
   UINT uiViewToolbarsMenuEntryID,
   BOOL bContextMenuShowsToolbarsOnly=FALSE,
   BOOL bViewMenuShowsToolbarsOnly=FALSE 
);

Parameters

  • [in] bEnable
    TRUE to enable the automatic handling of the control bar pop-up menus; FALSE to disable the automatic handling of the control bar pop-up menus.

  • [in] uiCustomizeCmd
    The command ID of the Customize menu item.

  • [in] strCustomizeLabel
    The label to be displayed for the Customize menu item

  • [in] uiViewToolbarsMenuEntryID
    The ID of a toolbar menu item that opens the pop-up menu in the control bar.

  • [in] bContextMenuShowsToolbarsOnly
    If TRUE, the control bar context menu displays the list of toolbars only. If FALSE, the menu displays the list of the toolbars and the docking bars.

  • [in] bViewMenuShowsToolbarsOnly
    If TRUE, the control bar menu displays the list of the toolbars only. If FALSE, the menu displays the list of the toolbars and the docking bars.

Requirements

Header: afxframewndex.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CFrameWndEx Class