Share via


COleIPFrameWndEx::OnDrawMenuImage

Called by the framework when the image that is associated with a menu item is drawn.

virtual BOOL OnDrawMenuImage(
   CDC* pDC,
   const CMFCToolBarMenuButton* pMenuButton,
   const CRect& rectImage 
);

Parameters

  • [in] pDC
    Pointer to the device context.

  • [in] pMenuButton
    Pointer to the menu button.

  • [in] rectImage
    The image associated with the menu item.

Return Value

The default implementation does nothing and returns 0.

Remarks

Override this method if you want to customize image drawing for the menu items that belong to the menu bar owned by the COleIPFrameWndEx-derived object.

Requirements

Header: afxoleipframewndex.h

See Also

Reference

COleIPFrameWndEx Class

Hierarchy Chart