Unicode Controls & Classes for VB6 - Version 4

clsCommDialogs.eChooseFont Enum

ShowFont flags enum; check on MSDN for a complete documentation

Values
Name Value Description
CF_SCREENFONTS &H1 This flag is ignored for font enumeration.
Windows Vista and Windows XP/2000: Causes the dialog box to list only the screen fonts supported by the system.
CF_PRINTERFONTS &H2 This flag is ignored for font enumeration.
Windows Vista and Windows XP/2000: 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.
CF_BOTH &H3 This flag is ignored for font enumeration.
Windows Vista and Windows XP/2000: 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.
CF_FontShowHelp &H4 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.
CF_UseStyle &H80 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.
Note To globalize your application, you should specify the style by using the lfWeight and lfItalic members of the LOGFONT structure pointed to by lpLogFont. The style name may change depending on the system user interface language.
CF_EFFECTS &H100 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.
CF_AnsiOnly &H400 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.
CF_SCRIPTSONLY &H400 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.
CF_NoVectorFonts &H800 ChooseFont should not allow vector font selections.
CF_NoOemFonts CF_NoVectorFonts Same as the CF_NOVECTORFONTS flag.
CF_NoSimulations &H1000 ChooseFont should not display or allow selection of font simulations.
CF_LIMITSIZE &H2000 ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax members.
CF_FixedPitchOnly &H4000 ChooseFont should enumerate and allow selection of only fixed-pitch fonts.
CF_WYSIWYG &H8000 Obsolete. ChooseFont ignores this flag.
Windows Vista and Windows XP/2000: 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.
CF_FORCEFONTEXIST &H10000 ChooseFont should indicate an error condition if the user attempts to select a font or style that is not listed in the dialog box.
CF_ScalableOnly &H20000 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.
CF_TTOnly &H40000 ChooseFont should only enumerate and allow the selection of TrueType fonts.
CF_NoFaceSel &H80000 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.
CF_NoStyleSel &H100000 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.
CF_NoSizeSel &H200000 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.
CF_SelectScript &H400000 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.
CF_NoScriptSel &H800000 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.
CF_NoVertFonts &H1000000 Causes the Font dialog box to list only horizontally oriented fonts.
CF_INITTOLOGFONTSTRUCT &H40 ChooseFont should use the structure pointed to by the lpLogFont member to initialize the dialog box controls.
CF_Apply &H200 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.
CF_EnableHook &H8 Enables the hook procedure specified in the lpfnHook member of this structure.
CF_EnableTemplate &H10 Indicates that the hInstance and lpTemplateName members specify a dialog box template to use in place of the default template.
CF_EnableTemplateHandle &H20 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.
CF_FontNotSupported &H238
CF_INACTIVEFONTS &H2000000 ChooseFont should additionally display fonts that are set to Hide in Fonts Control Panel.
Windows Vista and Windows XP/2000: This flag is not supported until Windows 7.
Remarks