Esempio n. 1
0
File: icon.go Progetto: wangch/walk
// Dispose releases the operating system resources associated with the Icon.
func (i *Icon) Dispose() {
	if i.isStock || i.hIcon == 0 {
		return
	}

	win.DestroyIcon(i.hIcon)
	i.hIcon = 0
}
Esempio n. 2
0
func (cc customCursor) Dispose() {
	win.DestroyIcon(win.HICON(cc.hCursor))
}