Esempio n. 1
0
func (this *Icon) Destroy() bool {
	return w32.DestroyIcon(this.handle)
}
Esempio n. 2
0
// Stops handling the interaction with the notify icon and
// removes the icon.
// The WM_QUIT message will be sent to all waiting GetMessage loops inside this process.
func (t *_NotifyIcon) Stop() {
	log.Println("Removig notification icon")
	shellNotifyIcon(_NIM_DELETE, &t.nid)
	w32.DestroyIcon(t.nid.HIcon)
	w32.PostQuitMessage(0)
}