🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #934

Re: Can I get a sample of Font Dialog use?

#934
From: Michael Harris
Date: Thu, 10 Sep 1992 01:37
23 lines
1307 bytes
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)
Technical Details
Message-ID: <harris.716089056@garfield.catt.ncsu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!taco!garfield.catt.ncsu.edu!harris
References: <v6sntva.grega@netcom.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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