Im trying to intercept menu notifications (which i do successfully) using SetWinEventHook(), however, the window that the procedure reports is not a valid Menu handle...
Heres some code:
Any ideas?
Heres some code:
Code:
FUNCTION WinEventFunc(BYVAL HookHandle AS LONG, BYVAL LEvent AS LONG, BYVAL hWnd AS LONG, BYVAL idObject AS LONG, BYVAL idChild AS LONG, BYVAL idEventThread AS LONG, BYVAL dwmsEventTime AS LONG) AS LONG If IsMenu(hWnd) then Beep ' Never beeps call ShowWindow(hwnd, %false) ' Hides the popup FUNCTION = %TRUE END FUNCTION
Comment