Delete deletes systray icon and disposes all resources.
()
| 175 | |
| 176 | // Delete deletes systray icon and disposes all resources. |
| 177 | func (s *SystrayIcon) Delete() error { |
| 178 | var data NotifyIconData |
| 179 | data.Size = uint32(unsafe.Sizeof(data)) |
| 180 | data.Flags = NotifyIconGUIDFlag |
| 181 | data.GUIDItem = SystrayIconGUID |
| 182 | data.HWnd = s.wnd |
| 183 | return ShellNotifyIcon(ShellDeleteIcon, &data) |
| 184 | } |
| 185 | |
| 186 | // ShStockIcon receives information used to retrieve a stock shell icon. |
| 187 | type ShStockIcon struct { |
no test coverage detected