Share via


WM_CHOOSEFONT_GETLOGFONT

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This message retrieves information about the current font selections that a user makes in the Font dialog box. To send this message, call the SendMessage function.

Syntax

WM_CHOOSEFONT_GETLOGFONT
  (WPARAM) wParam;
  (LPARAM) lParam;

Parameters

  • wParam
    Not used; must be zero.
  • lParam
    Pointer to a LOGFONT structure that receives information about the current font selections that the user made in the Font dialog box.

Return Value

None.

Remarks

ChooseFont (function) creates a Font dialog box. When the user closes the Font dialog box, the ChooseFont function returns information about the font selections that the user made in the CHOOSEFONT (structure). The lpLogFont member of the CHOOSEFONT structure is a pointer to a LOGFONT structure.

Use the WM_CHOOSEFONT_GETLOGFONT message to get information about the current font selections that the user has made while the Font dialog box is open. For example, if you enable the Apply button in the Font dialog box, send the message to get the font information to apply to the current text selection.

Typically, you enable a CFHookProc hook procedure to process WM_COMMAND messages for the Apply button. When the user chooses the Apply button, the hook procedure sends the WM_CHOOSEFONT_GETLOGFONT message to the dialog box.

Requirements

Header commdlg.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Standard Shell Messages
CFHookProc
ChooseFont (function)
SendMessage
WM_COMMAND
CHOOSEFONT (structure)

Other Resources

LOGFONT