TrackPopupMenu function user32

int TrackPopupMenu(
  1. int hMenu,
  2. int uFlags,
  3. int x,
  4. int y,
  5. int nReserved,
  6. int hWnd,
  7. Pointer<RECT> prcRect,
)

Displays a shortcut menu at the specified location and tracks the selection of items on the menu. The shortcut menu can appear anywhere on the screen.

BOOL TrackPopupMenu(
  [in]           HMENU      hMenu,
  [in]           UINT       uFlags,
  [in]           int        x,
  [in]           int        y,
  [in]           int        nReserved,
  [in]           HWND       hWnd,
  [in, optional] const RECT *prcRect
);

Implementation

int TrackPopupMenu(int hMenu, int uFlags, int x, int y, int nReserved, int hWnd,
        Pointer<RECT> prcRect) =>
    _TrackPopupMenu(hMenu, uFlags, x, y, nReserved, hWnd, prcRect);