Collapse the table of content
Expand the table of content



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

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

[in] pDC

Pointer to a device context.

[in] pMenuButton

Pointer to the menu button.

[in] rectImage

Bounding rectangle of the image.

TRUE if the method draws the image. The default implementation returns FALSE.

Override this method if you want to customize image rendering for the menu items that belong to the menu bar owned by the CMDIFrameWndEx-derived object. The default implementation does nothing.


Header: afxMDIFrameWndEx.h

© 2016 Microsoft