Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>setcatcatcapture()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetCatCatCapture()
Set the window to capture all mouse input
------------------------------------------------------------------------------

Syntax
SetCapture( <hWnd> )   -->   hOldWnd

Arguments
<hWnd> is the handle to the window to be given mouse input.

Returns
If successful, a handle to the window that previously had
captured mouse input is returned as an integer.  Otherwise,
zero (0) is returned.

Description
This function can be used to set the window that captures
mouse input.  Usually you would only do this for an operation
that should start when a mouse button is pressed and continue
until the button is released (e.g. dragging, drawing, pushing
a button).  Consequently, the returned value is rarely used
(receiving the button down message means the mouse wasn't
currently captured by another window).

Example
SetCapture( hWnd )
// . . .
ReleaseCapture()

See the sample file source\toolbar.prg.

See Also: ReleaseCapture()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson