示例#1
0
 /// <summary>
 /// The ANSI version of ChooseFont function creates a Font dialog box that enables
 /// the user to choose attributes for a logical font. These attributes include a
 /// typeface name, style (bold, italic, or regular), point size, effects
 /// (underline, strikeout, and text color), and a script (or character set).
 /// </summary>
 /// <param name="lpcf">Pointer to a CHOOSEFONTA structure that contains information
 /// used to initialize the dialog box. When ChooseFont returns, this structure contains
 /// information about the user's font selection</param>
 /// <returns>If the user clicks the OK button of the dialog box, the return value is
 /// nonzero. The members of the CHOOSEFONTA structure indicate the user's selections.
 /// If the user cancels or closes the Font dialog box or an error occurs, the return
 /// value is zero. To get extended error information, call the CommDlgExtendedError
 /// function </returns>
 public static bool ChooseFontA(ref ChooseFontA lpcf)
 {
     return(Native.ChooseFontA(ref lpcf));
 }
示例#2
0
 public static extern bool ChooseFontA(ref ChooseFontA param0);