Print method


Available for Window, DialogBox and Picture objects.

Syntax

Invoke Print, hWnd, lpszText

Function

Prints text inside the object's client area.

Parameters

hWnd

Handle to the object.

lpszText

Pointer to the effective address of the null-terminated string to print.

Return value

Eax returns TRUE if successful, or FALSE if not.


REMARKS: This method uses the coordinates set by
SetCurrentX and SetCurrentY methods as the starting point for drawing the text.

IMPORTANT: For Picture objects, you can also use the SetText method, but the Print method is faster because it does not update the object's text.