mirror of
https://github.com/netbirdio/systray.git
synced 2026-05-22 17:08:41 -07:00
correctly check for wParam of WM_COMMAND
This commit is contained in:
+2
-1
@@ -245,7 +245,8 @@ func (t *winTray) wndProc(hWnd windows.Handle, message uint32, wParam, lParam ui
|
||||
switch message {
|
||||
case WM_COMMAND:
|
||||
menuItemId := int32(wParam)
|
||||
if menuItemId != -1 {
|
||||
// https://docs.microsoft.com/en-us/windows/win32/menurc/wm-command#menus
|
||||
if menuItemId != 0 {
|
||||
systrayMenuItemSelected(menuItemId)
|
||||
}
|
||||
case WM_DESTROY:
|
||||
|
||||
Reference in New Issue
Block a user