Jump to content

SpQueryCapture

From EDM2
Revision as of 23:54, 6 March 2017 by Ak120 (talk | contribs) (Ak120 moved page OS2 API:SPUTILS:spQueryCapture to SpQueryCapture)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns the handle of the window that has the pointer captured.

Syntax: hwnd = spQueryCapture ( [ hwndDesktop ] )

Parameter:

hwndDesktop – Desktop-window handle. If ommited the default desktop handle (HWND_DESKTOP) will be used

Returns:

0 – No window has the pointer captured, or an error occurred.
>0 – Handle of the window with the pointer captured.