コード例 #1
0
ファイル: icon.go プロジェクト: foxundermoon/gform
func (this *Icon) Destroy() bool {
	return w32.DestroyIcon(this.handle)
}
コード例 #2
0
ファイル: notifyicon_win.go プロジェクト: danieljoos/keyfwd
// 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)
}