home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!gatech!taco!garfield.catt.ncsu.edu!harris
- From: harris@garfield.catt.ncsu.edu (Michael Harris)
- Subject: Re: Can I get a sample of Font Dialog use?
- Message-ID: <harris.716089056@garfield.catt.ncsu.edu>
- Sender: news@ncsu.edu (USENET News System)
- Organization: North Carolina State University
- References: <v6sntva.grega@netcom.com>
- Date: Thu, 10 Sep 1992 01:37:36 GMT
- Lines: 23
-
- grega@netcom.com (Greg Altman) writes:
-
- >I am trying toi use the WinFondDlg function and I an getting crashes every
- >time I get there. I don't know if my initialization of the FONTDLG structure
- >is correct.
-
- Be sure that you have initialized the pszFamilyName field.
-
- {
- char szFamilyName[FACESIZE];
-
- memset(&FontStruct, '\0', sizeof(FontStruct));
- FontStruct.pszFamilyName = szFamilyName;
- FontStruct.usFamilyBufLen = FACESIZE;
- ... and so on ...
- }
-
- The font dialog updates this field in your structure every time a new
- font is selected.
- ______________________________________________________________________________
- Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
- System Administrator, Computer & Technologies Theme Program, NC State Univ.
- (My opinions are my own and do not represent those of NCSU or IBM Corporation)
-