Partager via


CMFCToolBarImages::AddIcon

Adds an icon to the list of toolbar images.

int AddIcon(
   HICON hIcon,
   BOOL bAlphaBlend=FALSE 
);

Parameters

  • [in] hIcon
    A handle to the icon to be added.

  • [in] bAlphaBlend
    TRUE if this icon is used with alpha blending; otherwise FALSE.

Return Value

The zero-based index of the toolbar image that was added if the method is successful; otherwise -1.

Requirements

Header: afxtoolbarimages.h

See Also

Reference

CMFCToolBarImages Class

Hierarchy Chart