Partager via


CMFCRibbonButtonsGroup::OnDrawImage

Draws the appropriate image for a specified button, depending on whether the button is normal, highlighted or disabled.

virtual void OnDrawImage(
   CDC* pDC,
   CRect rectImage,
   CMFCRibbonBaseElement* pButton,
   int nImageIndex
);

Parameters

  • [in] pDC
    Pointer to the device context of the CMFCRibbonButtonsGroup object.

  • [in] rectImage
    The rectangle within which to draw the image.

  • [in] pButton
    The button for which to draw the image.

  • [in] nImageIndex
    The index of the image to draw on the button (in one of the three image arrays for normal, highlighted or disabled buttons).

Requirements

Header: afxribbonbuttonsgroup.h

See Also

Reference

CMFCRibbonButtonsGroup Class

Hierarchy Chart