SetLeft method


Available for all objects.

Prototype

SetLeft Proto hWnd:HWND, lLeft:LONG

Syntax

Invoke SetLeft, hWnd, lLeft

Function

Sets the Left property for an object.

Parameters

hWnd

Handle to the object.

lLeft

A LONG value specifying the new x-position for the object.

Return value

Eax returns TRUE if succesful, or FALSE if not.


REMARKS
: The lLeft value is intepreted as pixels or twips units depending on the ScaleMode property. For Window, MDIWindow and Picture objects it depends on its own ScaleMode property, while for any other object it depends on the ScaleMode property of its parent (if its parent is a Window, MDIWindow or Picture), or its first ascendant having the ScaleMode property.