diff options
Diffstat (limited to 'systray_windows.go')
| -rw-r--r-- | systray_windows.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/systray_windows.go b/systray_windows.go index 664af0c..3649807 100644 --- a/systray_windows.go +++ b/systray_windows.go @@ -25,6 +25,7 @@ var ( _setTitle = mod.NewProc("setTitle") _setTooltip = mod.NewProc("setTooltip") _add_or_update_menu_item = mod.NewProc("add_or_update_menu_item") + _hide_menu_item = mod.NewProc("hide_menu_item") ) func init() { @@ -131,6 +132,14 @@ func addOrUpdateMenuItem(item *MenuItem) { ) } +func hideMenuItem(item *MenuItem) { + _hide_menu_item.Call(uintptr(item.id)) +} + +func showMenuItem(item *MenuItem) { + addOrUpdateMenuItem(item) +} + type utf16 []uint16 // Raw returns the underlying *wchar_t of an utf16 so we can pass to DLL |
