Partager via


CMFCToolBarImages::DeleteImage

Deletes the user-defined image that has a specified index from the toolbar images.

BOOL DeleteImage(
   int iImage 
);

Parameters

  • [in] iImage
    Specifies the zero-based index of the image to delete.

Return Value

TRUE if the image was deleted successfully; FALSE if the image index is invalid, the CMFCToolbarImages object is temporary, the CMFCToolbarImages object does not contain user-defined images, or if some other error occurred.

Requirements

Header: afxtoolbarimages.h

See Also

Reference

CMFCToolBarImages Class

Hierarchy Chart