WM_CHOOSEFONT_SETFLAGS message (Windows)

Switch View :
ScriptFree
WM_CHOOSEFONT_SETFLAGS message

Applies to: desktop apps only

An application sends the WM_CHOOSEFONT_SETFLAGS message to a Font dialog box to set the display options for the dialog box.

#define WM_USER                        0x0400
#define WM_CHOOSEFONT_SETFLAGS        (WM_USER + 102)

Parameters

wParam

This parameter is not used.

lParam

A pointer to a CHOOSEFONT structure that contains new settings in the Flags member.

Return value

No return value.

Remarks

The ChooseFont function creates a Font dialog box and uses a CHOOSEFONT structure to specify the initial values for the Flags member. Use the WM_CHOOSEFONT_SETFLAGS message to specify different values for the Flags member while the Font dialog box is open.

Typically, you should send the WM_CHOOSEFONT_SETFLAGS message from a CFHookProc hook procedure.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Commdlg.h (include Windows.h)

See also

Reference
CFHookProc
ChooseFont
CHOOSEFONT
Conceptual
Common Dialog Box Library

 

 

Send comments about this topic to Microsoft

Build date: 2/10/2012

Community Content

robs_1002
WM_CHOOSEFONT_SETFLAGS is broken
I tried to use this WM_CHOOSEFONT_SETFLAGS message but was not able to make it work.  I filed a support incident and a Microsoft Engineer confirmed either the above documentation is incorrect or the implementation is broken.  Either way I'm adding this comment to the documentation so the next person might not waste so much time trying to get it to work.  For reference please refer to this thread: $0$0 $0 $0http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/f9a554a7-4458-41cb-a5ed-d720c0ed81c2/$0 $0$0 $0