Share via


CToolBarCtrl::SetImageList

Sets the image list that the toolbar will use to display buttons that are in their default state.

CImageList* SetImageList( 
   CImageList* pImageList  
);

Parameters

  • pImageList
    A pointer to a CImageList object containing the images to be used by the toolbar control to display button images in their default state.

Return Value

A pointer to a CImageList object that was previously used by the toolbar control to display button images in their default state.

Remarks

This member function implements the behavior of the Win32 message TB_SETIMAGELIST, as described in the Windows SDK.

The MFC implementation of SetImageList uses a CImageList object containing the toolbar control's button images, rather than a handle to an image list.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::GetImageList

CToolBarCtrl::SetDisabledImageList

CToolBarCtrl::SetHotImageList