Called by the framework when the application draws the image associated with a menu item.
virtual BOOL OnDrawMenuImage(
const CMFCToolBarMenuButton* pMenuButton,
const CRect& rectImage
A pointer to a device context.
A pointer to a menu button whose image is being rendered.
A pointer to a Rect structure that specifies the screen position and size of the image.
if the framework successfully renders the image; FALSE otherwise.
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.