GetWidth method


Available for all objects.

Prototype

GetWidth Proto hWnd:HWND

Syntax

Invoke GetWidth, hWnd

Function

Gets the Width property for an object.

Parameters

hWnd

Handle to the object.

Return value

Eax returns the current width for the object.


REMARKS
: This value is returned in 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.