CMFCRibbonGallery::OnDrawPaletteIcon
Called by the framework when a gallery icon is drawn.
virtual void OnDrawPaletteIcon(
CDC* pDC,
CRect rectIcon,
int nIconIndex,
CMFCRibbonGalleryIcon* pIcon,
COLORREF clrText
);
Parameters
[in] pDC
A pointer to the device context that is used for drawing.[in] rectIcon
Specifies the bounding rectangle of the icon to draw.[in] nIconIndex
Specifies the zero-based index in the image list of gallery icons of the icon to draw.[in] pIcon
A pointer to the icon being drawn.[in] clrText
Specifies the color for the text of the item to draw.
Remarks
You can override this method in a derived class to customize the appearance of a ribbon gallery.
Requirements
Header: afxRibbonPaletteGallery.h