GetAutoSize method
Available for Static and Picture objects.
Syntax
Invoke GetAutoSize, hWnd
Function
Gets the AutoSize property for an object.
Parameters
hWnd
Handle to the object.
Return value
Eax returns the current auto size state for the object.
Possible returned values are:
TRUE Object adjusts its size to text or picture (see REMARKS).
FALSE No sizing is performed.
REMARKS: When the AutoSize property is TRUE, Static objects adjust its size to text,
while Picture objects adjust its size to picture.