Esempio n. 1
0
File: icon.go Progetto: CodyGuo/gowi
// 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 errors.New("DestroyIcon")
	}

	i.hIcon = 0

	return nil
}
Esempio n. 2
0
File: icon.go Progetto: CodyGuo/gowi
func (i *Icon) Destroy() bool {
	return win.DestroyIcon(i.hIcon)
}