SetText method


Available for Window, MDIWindow, DialogBox, Static, Edit, Group, Button, Check, Radio and Picture objects.

Syntax

Invoke SetText, hWnd, lpszText

Function

Sets the Text property of an object.

Parameters

hWnd

Handle to the object.

lpszText

Pointer to the effective address of a null-terminated string with the new text.

Return value

Eax returns TRUE if succesful, or FALSE if not.

REMARKS: The lpszText parameter can be NULL for no text.