Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.