if (hotImageList == null) hotImageList = new ImageList ();
if (hotImageList == null) hotImageList = display.getToolHotImageList (size);
void updateImages () {	int hwnd = parent.handle;	TBBUTTONINFO info = new TBBUTTONINFO ();	info.cbSize = TBBUTTONINFO.sizeof;	info.dwMask = OS.TBIF_IMAGE;	OS.SendMessage (hwnd, OS.TB_GETBUTTONINFO, id, info);	if (info.iImage == OS.I_IMAGENONE && image == null) return;	ImageList imageList = parent.getImageList ();	ImageList hotImageList = parent.getHotImageList ();	ImageList disabledImageList = parent.getDisabledImageList();	if (info.iImage == OS.I_IMAGENONE) {		if (imageList == null) imageList = new ImageList ();		info.iImage = imageList.add (image);		parent.setImageList (imageList);		if (disabledImageList == null) disabledImageList = new ImageList ();		Image disabled = disabledImage;		if (disabledImage == null) {			disabled = image;			if (!getEnabled ()) {				Color color = parent.getBackground ();				disabled = disabledImage2 = createDisabledImage (image, color);			}		}		disabledImageList.add (disabled);		parent.setDisabledImageList (disabledImageList);		if ((parent.style & SWT.FLAT) != 0) {			if (hotImageList == null) hotImageList = new ImageList ();			hotImageList.add (hotImage != null ? hotImage : image);			parent.setHotImageList (hotImageList);		}	} else {		if (imageList != null) imageList.put (info.iImage, image);		if (disabledImageList != null) {			Image disabled = null;			if (image != null) {				if (disabledImage2 != null) disabledImage2.dispose ();				disabledImage2 = null;				disabled = disabledImage;				if (disabledImage == null) {					disabled = image;					if (!getEnabled ()) {						Color color = parent.getBackground ();						disabled = disabledImage2 = createDisabledImage (image, color);					}				}			}			disabledImageList.put (info.iImage, disabled);		}		if (hotImageList != null) {			Image hot = null;			if (image != null) hot = hotImage != null ? hotImage : image;			hotImageList.put (info.iImage, hot);		}		if (image == null) info.iImage = OS.I_IMAGENONE;	}	OS.SendMessage (hwnd, OS.TB_SETBUTTONINFO, id, info);}