home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1074 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

  1. Path: sparky!uunet!mcsun!uknet!yorkohm!jkn
  2. From: jkn@ohm.york.ac.uk (John Nicoll)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: beginner query: reentrant WinProc?
  5. Message-ID: <1992Jul29.155804.20680@ohm.york.ac.uk>
  6. Date: 29 Jul 92 15:58:04 GMT
  7. Organization: Electronics Department, University of York, UK
  8. Lines: 22
  9.  
  10. Hello all,
  11.     I'm modifying someones very dodgy windows code
  12. to add functionality such as multiple zoom windows
  13. of a structure containing spectrum information. Am I right
  14. in understanding that the WinProc window handler
  15. must be reentrant - ie. no static variables? Petzold &
  16. the other books I have don't mention anything about this.
  17.  
  18. Am I further correct in thinking that the best way to do this
  19. is to allocate extra bytes in the Window Class, and use these
  20. to point to my structures, initialising as WM_CREATE time etc?
  21.  
  22.     any information gratefully received - email or otherwise
  23.  
  24.     thank you
  25.         john N
  26.  
  27. -- 
  28. john nicoll (jkn@ohm.york.ac.uk)
  29. Department of Electronics  University of York
  30. Heslington   YORK YO1 5DD U.K
  31. Tel +44 (904) 432381   Fax +44 (904) 432335
  32.