Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.06 KB

SetCapture.md

File metadata and controls

43 lines (30 loc) · 1.06 KB

Home

Function name : SetCapture

Group: Mouse Input - Library: user32


The SetCapture function sets the mouse capture to the specified window belonging to the current thread.


Code examples:

Setting the mouse capture to the specified window
Displaying dimmed window behind VFP top-level form
GDI+: Implementing image scrolling with inertia

Declaration:

HWND SetCapture(
  HWND hWnd   // handle to window
);  

FoxPro declaration:

DECLARE INTEGER SetCapture IN user32;
	INTEGER hWnd  

Parameters:

hWnd [in] Handle to the window in the current thread that is to capture the mouse.


Return value:

The return value is a handle to the window that had previously captured the mouse. If there is no such window, the return value is NULL.