xtd 0.2.0
Loading...
Searching...
No Matches
choose font flags

Definition

choose font flags definitions.

Warning
Internal use only

Variables

constexpr size_t CF_SCREENFONTS
 Causes the dialog box to list only the screen fonts supported by the system.
 
constexpr size_t CF_PRINTERFONTS
 Causes the dialog box to list only the fonts supported by the printer associated with the device context or information context identified by the hDC member. It also causes the font type description label to appear at the bottom of the Font dialog box.
 
constexpr size_t CF_BOTH
 Causes the dialog box to list the available printer and screen fonts. The hDC member is a handle to the device context or information context associated with the printer. This flag is a combination of the CF_SCREENFONTS and CF_PRINTERFONTS flags.
 
constexpr size_t CF_SHOWHELP
 Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING registered messages that the dialog box sends when the user clicks the Help button.
 
constexpr size_t CF_ENABLEHOOK
 Enables the hook procedure specified in the lpfnHook member of this structure.
 
constexpr size_t CF_ENABLETEMPLATE
 Indicates that the hInstance and lpTemplateName members specify a dialog box template to use in place of the default template.
 
constexpr size_t CF_ENABLETEMPLATEHANDLE
 Indicates that the hInstance member identifies a data block that contains a preloaded dialog box template. The system ignores the lpTemplateName member if this flag is specified.
 
constexpr size_t CF_INITTOLOGFONTSTRUCT
 ChooseFont should use the structure pointed to by the lpLogFont member to initialize the dialog box controls.
 
constexpr size_t CF_USESTYLE
 The lpszStyle member is a pointer to a buffer that contains style data that ChooseFont should use to initialize the Font Style combo box. When the user closes the dialog box, ChooseFont copies style data for the user's selection to this buffer.
 
constexpr size_t CF_EFFECTS
 Causes the dialog box to display the controls that allow the user to specify strikeout, underline, and text color options. If this flag is set, you can use the rgbColors member to specify the initial text color. You can use the lfStrikeOut and lfUnderline members of the structure pointed to by lpLogFont to specify the initial settings of the strikeout and underline check boxes. ChooseFont can use these members to return the user's selections.
 
constexpr size_t CF_APPLY
 Causes the dialog box to display the Apply button. You should provide a hook procedure to process WM_COMMAND messages for the Apply button. The hook procedure can send the WM_CHOOSEFONT_GETLOGFONT message to the dialog box to retrieve the address of the structure that contains the current selections for the font.
 
constexpr size_t CF_ANSIONLY
 This flag is obsolete. To limit font selections to all scripts except those that use the OEM or Symbol character sets, use CF_SCRIPTSONLY. To get the original CF_ANSIONLY behavior, use CF_SELECTSCRIPT and specify ANSI_CHARSET in the lfCharSet member of the LOGFONT structure pointed to by lpLogFont.
 
constexpr size_t CF_SCRIPTSONLY
 ChooseFont should allow selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set. This supersedes the CF_ANSIONLY value.
 
constexpr size_t CF_NOVECTORFONTS
 ChooseFont should not allow vector font selections.
 
constexpr size_t CF_NOOEMFONTS
 Same as the CF_NOVECTORFONTS flag.
 
constexpr size_t CF_NOSIMULATIONS
 ChooseFont should not display or allow selection of font simulations.
 
constexpr size_t CF_LIMITSIZE
 ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax members.
 
constexpr size_t CF_FIXEDPITCHONLY
 ChooseFont should enumerate and allow selection of only fixed-pitch fonts.
 
constexpr size_t CF_WYSIWYG
 ChooseFont should allow only the selection of fonts available on both the printer and the display. If this flag is specified, the CF_SCREENSHOTS and CF_PRINTERFONTS, or CF_BOTH flags should also be specified.
 
constexpr size_t CF_FORCEFONTEXIST
 ChooseFont should indicate an error condition if the user attempts to select a font or style that is not listed in the dialog box.
 
constexpr size_t CF_SCALABLEONLY
 Specifies that ChooseFont should allow only the selection of scalable fonts. Scalable fonts include vector fonts, scalable printer fonts, TrueType fonts, and fonts scaled by other technologies.
 
constexpr size_t CF_TTONLY
 ChooseFont should only enumerate and allow the selection of TrueType fonts.
 
constexpr size_t CF_NOFACESEL
 When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the font name combo box. This is useful when there is no single font name that applies to the text selection.
 
constexpr size_t CF_NOSTYLESEL
 When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Style combo box. This is useful when there is no single font style that applies to the text selection.
 
constexpr size_t CF_NOSIZESEL
 When using a structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Size combo box. This is useful when there is no single font size that applies to the text selection.
 
constexpr size_t CF_SELECTSCRIPT
 When specified on input, only fonts with the character set identified in the lfCharSet member of the LOGFONT structure are displayed. The user will not be allowed to change the character set specified in the Scripts combo box.
 
constexpr size_t CF_NOSCRIPTSEL
 Disables the Script combo box. When this flag is set, the lfCharSet member of the LOGFONT structure is set to DEFAULT_CHARSET when ChooseFont returns. This flag is used only to initialize the dialog box.
 
constexpr size_t CF_NOVERTFONTS
 Causes the Font dialog box to list only horizontally oriented fonts.
 
constexpr size_t CF_INACTIVEFONTS
 ChooseFont should additionally display fonts that are set to Hide in Fonts Control Panel.
 

Variable Documentation

◆ CF_SCREENFONTS

constexpr size_t CF_SCREENFONTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the dialog box to list only the screen fonts supported by the system.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_PRINTERFONTS

constexpr size_t CF_PRINTERFONTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the dialog box to list only the fonts supported by the printer associated with the device context or information context identified by the hDC member. It also causes the font type description label to appear at the bottom of the Font dialog box.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_BOTH

constexpr size_t CF_BOTH
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the dialog box to list the available printer and screen fonts. The hDC member is a handle to the device context or information context associated with the printer. This flag is a combination of the CF_SCREENFONTS and CF_PRINTERFONTS flags.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_SHOWHELP

constexpr size_t CF_SHOWHELP
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING registered messages that the dialog box sends when the user clicks the Help button.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_ENABLEHOOK

constexpr size_t CF_ENABLEHOOK
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Enables the hook procedure specified in the lpfnHook member of this structure.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_ENABLETEMPLATE

constexpr size_t CF_ENABLETEMPLATE
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Indicates that the hInstance and lpTemplateName members specify a dialog box template to use in place of the default template.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_ENABLETEMPLATEHANDLE

constexpr size_t CF_ENABLETEMPLATEHANDLE
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Indicates that the hInstance member identifies a data block that contains a preloaded dialog box template. The system ignores the lpTemplateName member if this flag is specified.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_INITTOLOGFONTSTRUCT

constexpr size_t CF_INITTOLOGFONTSTRUCT
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should use the structure pointed to by the lpLogFont member to initialize the dialog box controls.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_USESTYLE

constexpr size_t CF_USESTYLE
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

The lpszStyle member is a pointer to a buffer that contains style data that ChooseFont should use to initialize the Font Style combo box. When the user closes the dialog box, ChooseFont copies style data for the user's selection to this buffer.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_EFFECTS

constexpr size_t CF_EFFECTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the dialog box to display the controls that allow the user to specify strikeout, underline, and text color options. If this flag is set, you can use the rgbColors member to specify the initial text color. You can use the lfStrikeOut and lfUnderline members of the structure pointed to by lpLogFont to specify the initial settings of the strikeout and underline check boxes. ChooseFont can use these members to return the user's selections.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_APPLY

constexpr size_t CF_APPLY
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the dialog box to display the Apply button. You should provide a hook procedure to process WM_COMMAND messages for the Apply button. The hook procedure can send the WM_CHOOSEFONT_GETLOGFONT message to the dialog box to retrieve the address of the structure that contains the current selections for the font.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_ANSIONLY

constexpr size_t CF_ANSIONLY
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

This flag is obsolete. To limit font selections to all scripts except those that use the OEM or Symbol character sets, use CF_SCRIPTSONLY. To get the original CF_ANSIONLY behavior, use CF_SELECTSCRIPT and specify ANSI_CHARSET in the lfCharSet member of the LOGFONT structure pointed to by lpLogFont.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_SCRIPTSONLY

constexpr size_t CF_SCRIPTSONLY
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should allow selection of fonts for all non-OEM and Symbol character sets, as well as the ANSI character set. This supersedes the CF_ANSIONLY value.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOVECTORFONTS

constexpr size_t CF_NOVECTORFONTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should not allow vector font selections.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOOEMFONTS

constexpr size_t CF_NOOEMFONTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Same as the CF_NOVECTORFONTS flag.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOSIMULATIONS

constexpr size_t CF_NOSIMULATIONS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should not display or allow selection of font simulations.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_LIMITSIZE

constexpr size_t CF_LIMITSIZE
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax members.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_FIXEDPITCHONLY

constexpr size_t CF_FIXEDPITCHONLY
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should enumerate and allow selection of only fixed-pitch fonts.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_WYSIWYG

constexpr size_t CF_WYSIWYG
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should allow only the selection of fonts available on both the printer and the display. If this flag is specified, the CF_SCREENSHOTS and CF_PRINTERFONTS, or CF_BOTH flags should also be specified.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_FORCEFONTEXIST

constexpr size_t CF_FORCEFONTEXIST
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should indicate an error condition if the user attempts to select a font or style that is not listed in the dialog box.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_SCALABLEONLY

constexpr size_t CF_SCALABLEONLY
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Specifies that ChooseFont should allow only the selection of scalable fonts. Scalable fonts include vector fonts, scalable printer fonts, TrueType fonts, and fonts scaled by other technologies.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_TTONLY

constexpr size_t CF_TTONLY
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should only enumerate and allow the selection of TrueType fonts.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOFACESEL

constexpr size_t CF_NOFACESEL
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the font name combo box. This is useful when there is no single font name that applies to the text selection.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOSTYLESEL

constexpr size_t CF_NOSTYLESEL
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

When using a LOGFONT structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Style combo box. This is useful when there is no single font style that applies to the text selection.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOSIZESEL

constexpr size_t CF_NOSIZESEL
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

When using a structure to initialize the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Size combo box. This is useful when there is no single font size that applies to the text selection.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_SELECTSCRIPT

constexpr size_t CF_SELECTSCRIPT
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

When specified on input, only fonts with the character set identified in the lfCharSet member of the LOGFONT structure are displayed. The user will not be allowed to change the character set specified in the Scripts combo box.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOSCRIPTSEL

constexpr size_t CF_NOSCRIPTSEL
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Disables the Script combo box. When this flag is set, the lfCharSet member of the LOGFONT structure is set to DEFAULT_CHARSET when ChooseFont returns. This flag is used only to initialize the dialog box.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_NOVERTFONTS

constexpr size_t CF_NOVERTFONTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

Causes the Font dialog box to list only horizontally oriented fonts.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ CF_INACTIVEFONTS

constexpr size_t CF_INACTIVEFONTS
constexpr

#include <xtd.forms.native/include/xtd/forms/choose_font_flags.hpp>

ChooseFont should additionally display fonts that are set to Hide in Fonts Control Panel.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only