🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: changing fonts

#1691
From: Brian E. Danilko
Date: Fri, 30 Nov 1990 14:56
28 lines
2001 bytes
In article <835@bohra.cpg.oz> ejp@bohra.cpg.oz (Esmond Pitt) writes:
>...Do I really have to use
>OWNERDRAW on all of them, or is there a neater way?

The Microsoft programmer's reference manual, version 1.2, volume 4 
contains a new command - WinSetPresParam - on page 332.  This command
can be used for changing the font using the PP_FONTNAMESIZE or 
PP_FONTHANDLE.  And the bonus part is that under comments on page 333
it is stated that all windows owned by the window calling the 
WinSetPresParam will have a WM_PRESPARAMCHANGED message sent to them.

So if you call the WinSetPresParam in a window owning static windows,
the static windows should take and use the new presentation parameter.
                               - OR -
Do the Microsoft created window classes not use the WM_PRESPARAMCHANGED??

I haven't tried this yet because of time pressures and because of the 
lack of information about the parameters PP_FONTNAMESIZE and PP_FONTHANDLE,
but it may provide a way of changing a font for all windows in an application.

P.S. I once tried changing the file name for the system font in one of the
     ini files to the courier font but it didn't work.  Doesn't OS/2 use 
     the information in it's ini files?
--
-------------------------------------------------------------------------------
Brian E. Danilko
E & M Waterloo, NCR Canada Ltd.,     MAILplus:  Brian.Danilko@Waterloo.NCR.COM
Waterloo, Ontario, CANADA            UUCP:      uunet!ncrlnk!swdev!bed
Technical Details
Message-ID: <1867@ncrwat.Waterloo.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ncrlnk!ncrwat!swdev!bed
References: <835@bohra.cpg.oz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ncrlnk!ncrwat!swdev!bed
From: bed@swdev.Waterloo.NCR.COM (Brian E. Danilko)
Newsgroups: comp.os.os2.programmer
Subject: Re: changing fonts
Message-ID: <1867@ncrwat.Waterloo.NCR.COM>
Date: 30 Nov 90 14:56:58 GMT
References: <835@bohra.cpg.oz>
Sender: news@ncrwat.Waterloo.NCR.COM
Reply-To: bed@swdev.Waterloo.NCR.COM (Brian E. Danilko)
Organization: NCR Canada Ltd, Waterloo, Ontario, Canada.
Lines: 28