GetTranslatedCoordinates
Delphi
function GetTranslatedCoordinates (DisplayIndex: LongInt; NativeX: LongInt; NativeY: LongInt; var TranslatedX: LongInt; var TranslatedY: LongInt): Boolean;
C++Builder
bool __fastcall GetTranslatedCoordinates(System::LongInt DisplayIndex, System::LongInt NativeX, System::LongInt NativeY, System::LongInt &TranslatedX, System::LongInt &TranslatedY);
C#
public bool GetTranslatedCoordinates(int DisplayIndex, int NativeX, int NativeY, ref int TranslatedX, ref int TranslatedY);
VB.NET
Public Function GetTranslatedCoordinates(DisplayIndex As Integer, NativeX As Integer, NativeY As Integer, ByRef TranslatedX As Integer, ByRef TranslatedY As Integer) As Boolean
C++/Qt
BOOL GetTranslatedCoordinates (int DisplayIndex, int NativeX, int NativeY, int *TranslatedX, int *TranslatedY);
Used to retrieve the translated coordinates of the mouse
Remarks
Invoke GetTranslatedCoordinates to retrieve the translated coordinates (the coordinates within the video window, left/top corner = 0,0 ) of the mouse events when TranslateMouseCoordinates is disabled.
This function can be invoked from the following events:
OnDragOver
OnDragDrop