SetAutoSize method


Available for Static and Picture objects.

Prototype

SetAutoSize Proto hWnd:HWND, bAutoSize:BOOL

Syntax

Invoke SetAutoSize, hWnd, bAutoSize

Function

Sets the AutoSize property for an object.

Parameters

hWnd

Handle to the object.

bAutoSize

A BOOL value specifying the new auto size state for the object.

Return value

Eax/Rax returns TRUE if successful, or FALSE if not.