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

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

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

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.

Header: afxvisualmanageroffice2003.h