GetFontName method


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

Syntax

Invoke GetFontName, hWnd, lpszBuffer

Function

Gets the font name for an object.

Parameters

hWnd

Handle to the object.

lpszBuffer

Pointer to a buffer to receive the font name for the object.

Return value

Eax returns the length, in characters, for the font name of the object.