Export (0) Print
Expand All
Expand Minimize

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 
);

[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.

TRUE 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.

Header: afxframewndex.h

Show:
© 2015 Microsoft