windows_programming_notes.nbk: Home | Index | Next Page: WM_GETHOTKEY | Previous Page: WM_GETDLGCODE
An application sends a WM_GETFONT message to a control to retrieve the font with which the control is currently drawing its text.
To send this message, call the SendMessage function with the following parameters.
SendMessage( (HWND) hWnd, // handle to destination window WM_GETFONT, // message to send (WPARAM) wParam, // not used; must be zero (LPARAM) lParam // not used; must be zero );
This message has no parameters.
The return value is a handle to the font used by the control, or NULL if the control is using the system font.
Windows NT/2000 or later: Requires Windows NT 3.1 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_GETHOTKEY | Previous Page: WM_GETDLGCODE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time