func (tv *TreeView) disposeImageListAndCaches() { if tv.hIml != 0 && !tv.usingSysIml { win.ImageList_Destroy(tv.hIml) } tv.hIml = 0 tv.imageUintptr2Index = nil tv.filePath2IconIndex = nil }
func (tv *TableView) disposeImageListAndCaches() { if tv.hIml != 0 && !tv.usingSysIml { tv.SendMessage(win.LVM_SETIMAGELIST, win.LVSIL_SMALL, 0) win.ImageList_Destroy(tv.hIml) } tv.hIml = 0 tv.imageUintptr2Index = nil tv.filePath2IconIndex = nil }
func (il *ImageList) Dispose() { if il.hIml != 0 { win.ImageList_Destroy(il.hIml) il.hIml = 0 } }