Поделиться через


CToolBarCtrl::SetImageList

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

CImageList* SetImageList(
   CImageList* pImageList 
);

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxcmn.h

См. также

Основные понятия

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::GetImageList

CToolBarCtrl::SetDisabledImageList

CToolBarCtrl::SetHotImageList