다음을 통해 공유


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

Parameters

  • [in] pDC
    Pointer to a device context.

  • [in] pMenuButton
    Pointer to the menu button.

  • [in] rectImage
    Bounding rectangle of the image.

Return Value

TRUE if the method draws the image. The default implementation returns FALSE.

Remarks

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.

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart