Condividi tramite


CMFCToolBarButton::SetImage

Sets the image index of the button.

virtual void SetImage(
   int iImage 
);

Parameters

  • [in] iImage
    The index of the image in the collection of toolbar images.

Remarks

If the toolbar button is a separator, iImage refers to the new width of the separator button.

If iImage is less than zero, this method disables drawing of the image and enables drawing of the text label of the button.

Requirements

Header: afxtoolbarbutton.h

See Also

Reference

CMFCToolBarButton Class

Hierarchy Chart

CMFCToolBarButton::GetImage