Share via


CMFCToolBarMenuButton::DrawDocumentIcon

Draws a document icon on the menu button.

void DrawDocumentIcon(
   CDC* pDC,
   const CRect& rectImage,
   HICON hIcon 
);

Parameters

  • [in] pDC
    A pointer to the device context.

  • [in] rectImage
    Coordinates of the image bounding rectangle.

  • [in] hIcon
    A handle to the icon.

Remarks

This method takes a document icon and draws it on the menu button, centered in the area specified by rectImage.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart