Partilhar via


CFrameWndEx::OnDrawMenuLogo

Called by the framework when a CMFCPopupMenu object processes a WM_PAINT message.

virtual void OnDrawMenuLogo(
   CDC* pDC,
   CMFCPopupMenu* pMenu,
   const CRect& rectLogo 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] pMenu
    A pointer to the menu item.

  • [in] rectLogo
    A reference to a constant CRect structure that specifies the screen position and size of the menu logo.

Remarks

Override this function if you want to display a logo on the pop-up menu that belongs to the menu bar owned by the CFrameWndEx derived object.

Requirements

Header: afxframewndex.h

See Also

Reference

CFrameWndEx Class

Hierarchy Chart