The TCM_SETIMAGELIST message assigns an image list to a tab control. You can send this message explicitly or by using the TabCtrl_SetImageList macro.
TCM_SETIMAGELIST wParam = 0; // not used; must be zero lParam = (LPARAM) (HIMAGELIST) himl; // handle of image list to assign to tab control
Returns the handle to the previous image list or NULL if there is no previous image list.