Captures the mouse to the specified input target. This method should be called by all implementations of INInputTarget.CaptureMouse(). Any subsequent mouse events send to the DOM for processing will first be processed by the capture target.
'Declaration
Public Shared Function Capture( _
ByVal As INInputNode _
) As System.Boolean
'Usage
Dim target As INInputNode
Dim value As System.Boolean
value = NMouse.Capture(target)
public static System.bool Capture(
INInputNode
)
Parameters
- target
Return Value
returns true of the target has mouse capture after the operation, otherwise returns false
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)