🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Which message on Font Change.

#498
From: Roger Fearick
Date: Mon, 27 Jul 1992 10:53
24 lines
1668 bytes
In article <n2kmz5m.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes:

>sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:
>: 
>: new font.  My question is:  What message is sent to my window procedure
>: when I drag a new font to the window?  I tried a couple of the more
>: obvious ones, I don't remember their names right now, something about
>: SYSVALUE and COLORCHANGE, I'm not sure.  Also, I'm assuming that this is
>: the way these features work, if they're not, let me know what the
>: standard way of dealing with them is.  I've also tried dragging a new
>: color to the window, and it seems to make no difference at all.  Is
>: there a message that also goes with a color change?  Some pseudo-code
>: would also be helpful.  Thanks.  
>: 
>Did you look at WM_SETWINDOWPARAMS?  The WNDPARAMS structure contains
>Presentation Parameter length and data pointer elements.

The window gets a WM_PRESPARAMCHANGED message.
You can get the new presentation parameter (font, colour, etc) by
an appropriate call to WinQueryPresParam.

Roger Fearick                 *  Internet: fearick@physci.uct.ac.za
Dept. of Physics              *
University of Cape Town       *
Technical Details
Message-ID: <fearick.38.0@physci.uct.ac.za>
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ucthpx!physci.uct.ac.za!fearick
References: <wePQaHa00Vp94KSF1E@andrew.cmu.edu> <n2kmz5m.daveb@netcom.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!psgrain!hippo!ucthpx!physci.uct.ac.za!fearick
From: fearick@physci.uct.ac.za (Roger Fearick)
Subject: Re: Which message on Font Change.
Sender: news@ucthpx.uct.ac.za (UCT News Admin.)
Message-ID: <fearick.38.0@physci.uct.ac.za>
Date: Mon, 27 Jul 92 10:53:29 GMT
References: <wePQaHa00Vp94KSF1E@andrew.cmu.edu> <n2kmz5m.daveb@netcom.com>
Organization: Physics Department, University of Cape Town
Lines: 24