To present a font dialog to users, your application must do the following:
The application must do the following:
a.
a.
For example, you can pass the following information about the font in these fields of the FONTDLG structure:
Field
FONTDLG fd; /* Font dialog structure */strcpy(szCurrentFont,"Tms Rmn"); /* Times Roman font */ memset(&fd, /* Storage of the */ 0, /* FONTDLG structure */ sizeof(FONTDLG)); fd.cbSize=sizeof(FONTDLG); /* Size of structure */ fd.pszFamilyname=szCurrentFont; /* Initial font type */ fd.fxPointSize=MAKEFIXED(24,0); /* Initial font to 24 point */ fd.usFamilyBufLen=FACESIZE; /* Family buffer length */ fd.clrFore=SYSCLR_WINDOWTEXT; /* Foreground color */ fd.clrBack=SYSCLR_WINDOW; /* Background color */ fd.fl=FNTS_CENTER | /* Font flags */ FNTS_INITFROMATTRS;