TBApiDeviceSetMouseScaling API Call

 

Description

Instruct the driver to direct all mouse activity for the specified device to the specified desktop rectangle, scaling as appropriate.

Parameters

Device id, and extents of rectangle.

Returns

0 = fail, 1 = OK.

Notes

See also TBApiDeviceStopMouseScaling.

 

Visual C++ Declaration/example

 

BOOL TBApiDeviceSetMouseScaling(int aDeviceId, long left, long top, long right, long bottom);

 

If (TBApiDeviceSetMouseScaling(0, 0, 0, 1000, 1000))

            AfxMessageBox( “Mouse scaling set ok”);

 

Visual Basic Declaration/example

 

Public Declare Function TBApiDeviceSetMouseScaling Lib "TBapi" Alias “_DLL_TBApiDeviceSetMouseScaling@20" _

(ByVal aDeviceId As Byte, ByVal left As Long, ByVal top As Long, ByVal right As Long, ByVal bottom As Long) As Boolean

 

If TBApiDeviceSetMouseScaling (0, 0, 0, 1000, 1000) = true then

            MsgBox “Mouse scaling set ok”

End if