home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4853 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!taco!garfield.catt.ncsu.edu!harris
  3. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  4. Subject: Re: Can I get a sample of Font Dialog use?
  5. Message-ID: <harris.716089056@garfield.catt.ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: North Carolina State University
  8. References: <v6sntva.grega@netcom.com>
  9. Date: Thu, 10 Sep 1992 01:37:36 GMT
  10. Lines: 23
  11.  
  12. grega@netcom.com (Greg Altman) writes:
  13.  
  14. >I am trying toi use the WinFondDlg function and I an getting crashes every
  15. >time I get there. I don't know if my initialization of the FONTDLG structure
  16. >is correct.
  17.  
  18. Be sure that you have initialized the pszFamilyName field.
  19.  
  20. {
  21. char szFamilyName[FACESIZE];
  22.  
  23. memset(&FontStruct, '\0', sizeof(FontStruct));
  24. FontStruct.pszFamilyName = szFamilyName;
  25. FontStruct.usFamilyBufLen = FACESIZE;
  26. ... and so on ...
  27. }
  28.  
  29. The font dialog updates this field in your structure every time a new
  30. font is selected.
  31. ______________________________________________________________________________
  32.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  33.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  34. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  35.