I was wanting to use TrackMenuPopu, declared in win32api.inc as
But in the few samples I found of its use, there was this type of statement:
Can someone explain where ByVal 0 works as a value for the last argument? I tried a plain 0 and it was rejected by the compiler. And neither are a type RECT.
Code:
DECLARE FUNCTION TrackPopupMenu LIB "USER32.DLL" ALIAS "TrackPopupMenu" (BYVAL hMenu AS DWORD, BYVAL uFlags AS DWORD, BYVAL x AS LONG, BYVAL y AS LONG, BYVAL nReserved AS LONG, BYVAL hWnd AS DWORD, lprc AS RECT) AS LONG
Code:
TrackPopupMenu hPopup, %TPM_LEFTALIGN, x, y, 0, Cb.Hndl, ByVal 0
Comment