Compartilhar via


IVMMouse::UsingAbsoluteCoordinates property

The UsingAbsoluteCoordinates property contains TRUE if the mouse device is set to use absolute coordinates, FALSE if set to use delta coordinates. This property is local only to this object and will default to FALSE for a new IVMMouse object. Note that Additions must be installed in order to use absolute coordinates.

This property is read/write.

Syntax

HRESULT put_UsingAbsoluteCoordinates(
  [in]  VARIANT_BOOL usingAbsoluteCoordinates
);

HRESULT get_UsingAbsoluteCoordinates(
  [out] VARIANT_BOOL *usingAbsoluteCoordinates
);

VB
VMMouse.UsingAbsoluteCoordinates( _
  ByRef usingAbsoluteCoordinates, _
  ByVal usingAbsoluteCoordinates _
)

Property value

Contains vbTrue if the device is set to use absolute coordinates, vbFalse if it is set to use delta coordinates.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The parameter is NULL.
VM_E_ADDITIONS_FEATURE_NOT_AVAILABLE
Additions are not installed. Additions are required to use absolute coordinates.
DISP_E_EXCEPTION
An unexpected error occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMMouse