xtd 0.2.0
Loading...
Searching...
No Matches
choose_font_flags.h
Go to the documentation of this file.
1
4#pragma once
5#include <cstddef>
6
7#if !defined(CF_SCREENFONTS)
14constexpr size_t CF_SCREENFONTS = 0x00000001;
21constexpr size_t CF_PRINTERFONTS = 0x00000002;
28constexpr size_t CF_BOTH = (CF_SCREENFONTS | CF_PRINTERFONTS);
35constexpr size_t CF_SHOWHELP = 0x00000004L;
42constexpr size_t CF_ENABLEHOOK = 0x00000008L;
49constexpr size_t CF_ENABLETEMPLATE = 0x00000010L;
56constexpr size_t CF_ENABLETEMPLATEHANDLE = 0x00000020L;
63constexpr size_t CF_INITTOLOGFONTSTRUCT = 0x00000040L;
70constexpr size_t CF_USESTYLE = 0x00000080L;
77constexpr size_t CF_EFFECTS = 0x00000100L;
84constexpr size_t CF_APPLY = 0x00000200L;
91constexpr size_t CF_ANSIONLY = 0x00000400L;
98constexpr size_t CF_SCRIPTSONLY = CF_ANSIONLY;
105constexpr size_t CF_NOVECTORFONTS = 0x00000800L;
119constexpr size_t CF_NOSIMULATIONS = 0x00001000L;
126constexpr size_t CF_LIMITSIZE = 0x00002000L;
133constexpr size_t CF_FIXEDPITCHONLY = 0x00004000L;
140constexpr size_t CF_WYSIWYG = 0x00008000L; // must also have CF_SCREENFONTS & CF_PRINTERFONTS
147constexpr size_t CF_FORCEFONTEXIST = 0x00010000L;
154constexpr size_t CF_SCALABLEONLY = 0x00020000L;
161constexpr size_t CF_TTONLY = 0x00040000L;
168constexpr size_t CF_NOFACESEL = 0x00080000L;
175constexpr size_t CF_NOSTYLESEL = 0x00100000L;
182constexpr size_t CF_NOSIZESEL = 0x00200000L;
189constexpr size_t CF_SELECTSCRIPT = 0x00400000L;
196constexpr size_t CF_NOSCRIPTSEL = 0x00800000L;
203constexpr size_t CF_NOVERTFONTS = 0x01000000L;
210constexpr size_t CF_INACTIVEFONTS = 0x02000000L;
211#endif
constexpr size_t CF_TTONLY
ChooseFont should only enumerate and allow the selection of TrueType fonts.
Definition choose_font_flags.h:161
constexpr size_t CF_NOFACESEL
When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the di...
Definition choose_font_flags.h:168
constexpr size_t CF_FORCEFONTEXIST
ChooseFont should indicate an error condition if the user attempts to select a font or style that is ...
Definition choose_font_flags.h:147
constexpr size_t CF_BOTH
Causes the dialog box to list the available printer and screen fonts. The hDC member is a handle to t...
Definition choose_font_flags.h:28
constexpr size_t CF_ANSIONLY
This flag is obsolete. To limit font selections to all scripts except those that use the OEM or Symbo...
Definition choose_font_flags.h:91
constexpr size_t CF_WYSIWYG
ChooseFont should allow only the selection of fonts available on both the printer and the display....
Definition choose_font_flags.h:140
constexpr size_t CF_NOVERTFONTS
Causes the Font dialog box to list only horizontally oriented fonts.
Definition choose_font_flags.h:203
constexpr size_t CF_APPLY
Causes the dialog box to display the Apply button. You should provide a hook procedure to process WM_...
Definition choose_font_flags.h:84
constexpr size_t CF_ENABLEHOOK
Enables the hook procedure specified in the lpfnHook member of this structure.
Definition choose_font_flags.h:42
constexpr size_t CF_PRINTERFONTS
Causes the dialog box to list only the fonts supported by the printer associated with the device cont...
Definition choose_font_flags.h:21
constexpr size_t CF_EFFECTS
Causes the dialog box to display the controls that allow the user to specify strikeout,...
Definition choose_font_flags.h:77
constexpr size_t CF_ENABLETEMPLATE
Indicates that the hInstance and lpTemplateName members specify a dialog box template to use in place...
Definition choose_font_flags.h:49
constexpr size_t CF_SCRIPTSONLY
ChooseFont should allow selection of fonts for all non-OEM and Symbol character sets,...
Definition choose_font_flags.h:98
constexpr size_t CF_NOOEMFONTS
Same as the CF_NOVECTORFONTS flag.
Definition choose_font_flags.h:112
constexpr size_t CF_NOSCRIPTSEL
Disables the Script combo box. When this flag is set, the lfCharSet member of the LOGFONT structure i...
Definition choose_font_flags.h:196
constexpr size_t CF_NOSIMULATIONS
ChooseFont should not display or allow selection of font simulations.
Definition choose_font_flags.h:119
constexpr size_t CF_SELECTSCRIPT
When specified on input, only fonts with the character set identified in the lfCharSet member of the ...
Definition choose_font_flags.h:189
constexpr size_t CF_INACTIVEFONTS
ChooseFont should additionally display fonts that are set to Hide in Fonts Control Panel.
Definition choose_font_flags.h:210
constexpr size_t CF_SCREENFONTS
Causes the dialog box to list only the screen fonts supported by the system.
Definition choose_font_flags.h:14
constexpr size_t CF_USESTYLE
The lpszStyle member is a pointer to a buffer that contains style data that ChooseFont should use to ...
Definition choose_font_flags.h:70
constexpr size_t CF_SCALABLEONLY
Specifies that ChooseFont should allow only the selection of scalable fonts. Scalable fonts include v...
Definition choose_font_flags.h:154
constexpr size_t CF_FIXEDPITCHONLY
ChooseFont should enumerate and allow selection of only fixed-pitch fonts.
Definition choose_font_flags.h:133
constexpr size_t CF_NOSTYLESEL
When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the di...
Definition choose_font_flags.h:175
constexpr size_t CF_INITTOLOGFONTSTRUCT
ChooseFont should use the structure pointed to by the lpLogFont member to initialize the dialog box c...
Definition choose_font_flags.h:63
constexpr size_t CF_LIMITSIZE
ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax memb...
Definition choose_font_flags.h:126
constexpr size_t CF_SHOWHELP
Causes the dialog box to display the Help button. The hwndOwner member must specify the window to rec...
Definition choose_font_flags.h:35
constexpr size_t CF_ENABLETEMPLATEHANDLE
Indicates that the hInstance member identifies a data block that contains a preloaded dialog box temp...
Definition choose_font_flags.h:56
constexpr size_t CF_NOSIZESEL
When using a structure to initialize the dialog box controls, use this flag to prevent the dialog box...
Definition choose_font_flags.h:182
constexpr size_t CF_NOVECTORFONTS
ChooseFont should not allow vector font selections.
Definition choose_font_flags.h:105