GetTextAlignment method


Available for Static, Edit, Group, Button, Check, Radio and Picture objects

Syntax

Invoke GetTextAlignment, hWnd

Function

Gets the TextAlignment property for an object.

Parameters

hWnd

Handle to the object.

Return value

Eax returns the current text alignment for the object.

Possible returned values are:

0 ecLeftText is left aligned.
1 ecCenterText is centered.
2 ecRightText is right aligned.