home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3805 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!psgrain!hippo!ucthpx!physci.uct.ac.za!fearick
  3. From: fearick@physci.uct.ac.za (Roger Fearick)
  4. Subject: Re: Which message on Font Change.
  5. Sender: news@ucthpx.uct.ac.za (UCT News Admin.)
  6. Message-ID: <fearick.38.0@physci.uct.ac.za>
  7. Date: Mon, 27 Jul 92 10:53:29 GMT
  8. References: <wePQaHa00Vp94KSF1E@andrew.cmu.edu> <n2kmz5m.daveb@netcom.com>
  9. Organization: Physics Department, University of Cape Town
  10. Lines: 24
  11.  
  12. In article <n2kmz5m.daveb@netcom.com> daveb@netcom.com (Dave Briccetti) writes:
  13.  
  14. >sl31+@andrew.cmu.edu (Stephen M. Lacy) writes:
  15. >: 
  16. >: new font.  My question is:  What message is sent to my window procedure
  17. >: when I drag a new font to the window?  I tried a couple of the more
  18. >: obvious ones, I don't remember their names right now, something about
  19. >: SYSVALUE and COLORCHANGE, I'm not sure.  Also, I'm assuming that this is
  20. >: the way these features work, if they're not, let me know what the
  21. >: standard way of dealing with them is.  I've also tried dragging a new
  22. >: color to the window, and it seems to make no difference at all.  Is
  23. >: there a message that also goes with a color change?  Some pseudo-code
  24. >: would also be helpful.  Thanks.  
  25. >: 
  26. >Did you look at WM_SETWINDOWPARAMS?  The WNDPARAMS structure contains
  27. >Presentation Parameter length and data pointer elements.
  28.  
  29. The window gets a WM_PRESPARAMCHANGED message.
  30. You can get the new presentation parameter (font, colour, etc) by
  31. an appropriate call to WinQueryPresParam.
  32.  
  33. Roger Fearick                 *  Internet: fearick@physci.uct.ac.za
  34. Dept. of Physics              *
  35. University of Cape Town       *
  36.