Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CMDIFrameWndEx::OnDrawMenuImage

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

Show:
© 2015 Microsoft