Exemplo n.º 1
0
Arquivo: icon.go Projeto: Archs/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
}
Exemplo n.º 2
0
// Dispose releases the operating system resources associated with the Icon.
func (i *Icon) Dispose() error {
	if i.isStock || i.hIcon == 0 {
		return nil
	}

	if !win.DestroyIcon(i.hIcon) {
		return lastError("DestroyIcon")
	}

	i.hIcon = 0

	return nil
}
Exemplo n.º 3
0
func (cc customCursor) Dispose() {
	win.DestroyIcon(win.HICON(cc.hCursor))
}