Dela via


CBasePane::OnPaneContextMenu

Called by the framework when it builds a menu that has a list of panes.

virtual void OnPaneContextMenu(
   CWnd* pParentFrame,
   CPoint point
);

Parameters

  • [in] pParentFrame
    A pointer to the parent frame.

  • [in] point
    Specifies the location of the shortcut menu.

Remarks

OnPaneContextMenu calls the docking manager, which maintains the list of panes that belong to the current frame window. This method adds the names of the panes to a shortcut menu and displays it. The commands on the menu show or hide individual panes.

Override this method to customize this behavior.

Requirements

Header: afxbasepane.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CBasePane Class