SetFontName method


Available for all objects except Image, HScroll, VScroll, ToolBar, ProgressBar, Slider, UpDown and Animate.

Syntax

Invoke SetFontName, hWnd, lpszFontName

Function

Sets the font name for an object.

Parameters

hWnd

Handle to the object.

lpszFontName

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

Return value

Eax returns TRUE if succesful, or FALSE if not.