Düzenle

Aracılığıyla paylaş


WM_CHOOSEFONT_SETLOGFONT message

An application sends the WM_CHOOSEFONT_SETLOGFONT message to a Font dialog box to set the current logical font information.

#define WM_USER                        0x0400
#define WM_CHOOSEFONT_SETLOGFONT      (WM_USER + 101)

Parameters

wParam

This parameter is not used.

lParam

A pointer to a LOGFONT structure that contains information about the current logical font.

Return value

This message has no return value.

Remarks

When you call the ChooseFont function to create a Font dialog box, you can use the lpLogFont member of the CHOOSEFONT structure to specify a LOGFONT structure containing initial values for the dialog box. Use the WM_CHOOSEFONT_SETLOGFONT message to specify a LOGFONT structure with different values while the Font dialog box is open.

Typically, you would send the WM_CHOOSEFONT_SETLOGFONT message from a CFHookProc hook procedure. The hook procedure can also send the WM_CHOOSEFONT_GETLOGFONT and WM_CHOOSEFONT_SETFLAGS messages.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Commdlg.h (include Windows.h)

See also

Reference

CFHookProc

ChooseFont

CHOOSEFONT

WM_CHOOSEFONT_GETLOGFONT

WM_CHOOSEFONT_SETFLAGS

Conceptual

Common Dialog Box Library

Other Resources

LOGFONT