CFrameWndEx::OnDrawMenuImage
Called by the framework when the application draws the image associated with a menu item.
virtual BOOL OnDrawMenuImage(
CDC* pDC,
const CMFCToolBarMenuButton* pMenuButton,
const CRect& rectImage
);
Parameters
[in] pDC
A pointer to a device context.[in] pMenuButton
A pointer to a menu button whose image is being rendered.[in] rectImage
A pointer to a Rect structure that specifies the screen position and size of the image.
Return Value
TRUE if the framework successfully renders the image; FALSE otherwise.
Remarks
Override this method if you want to customize the image rendering for the menu items that belong to the menu bar owned by the CFrameWndEx derived object.
Requirements
Header: afxframewndex.h