The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



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