共用方式為


CMFCVisualManagerOffice2003::OnDrawMenuBorder

The framework calls this method when it draws the border of a CMFCPopupMenu Class.

virtual void OnDrawMenuBorder(
   CDC* pDC,
   CMFCPopu* pMenu,
   CRect rect
);

Parameters

  • [in] pDC
    A pointer to the device context for a CMFCPopupMenu Class object.

  • [in] pMenu
    A pointer to a CMFCPopupMenu Class object. The framework draws a border around this popup menu.

  • [in] rect
    A rectangle that specifies the boundaries of the popup menu.

Remarks

The default implementation of this method displays the standard menu border. Override this method in a derived visual manager to customize the appearance of the menu border.

Requirements

Header: afxvisualmanageroffice2003.h

See Also

Reference

CMFCVisualManagerOffice2003 Class

Hierarchy Chart