Set the CF_INITTOLOGFONTSTRUCT flag in the Flags member, along with members of the LOGFONT structure that is pointed to by the lpLogFont, to specify the initial values for the font attributes.To specify the initial values for the Font, Font Style, Size, Strikeout, and Underline dialog box controls:.To specify the initial values for the Font, Font Style, Size, Strikeout, and Underline dialog box controls: You can use the rgbColors member of the CHOOSEFONT structure to specify an initial font color. To display the controls that allow the user to select strikeout, underline, and color options: You can use the Flags member to enable or disable some of the Font dialog box controls, and you can use the Flags member in conjunction with other CHOOSEFONT members to control the initial values of some controls. However, the CF_PRINTERFONTS flag retains one function: to display the font type description label at the bottom of the Font dialog box. Starting with Windows 7, the CF_PRINTERFONTS, CF_SCREENFONTS, CF_BOTH, and CF_WYSIWYG flags are no longer used by the ChooseFont function for font enumeration. If the CF_PRINTERFONTS or CF_BOTH flag is set, the font type description label appears at the bottom of the Font dialog box. If you specify CF_PRINTERFONTS or CF_BOTH, the hDC member of the CHOOSEFONT structure must specify a handle to a device context for the printer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |