home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / misc / 1693 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.0 KB

  1. Path: sparky!uunet!mcsun!sun4nl!media03!rla
  2. From: rla@media03.UUCP (Raymond van der Laan)
  3. Newsgroups: comp.windows.misc
  4. Subject: DLL's and PeekMessage
  5. Message-ID: <2898@media03.UUCP>
  6. Date: 19 Nov 92 17:08:27 GMT
  7. Organization: Mediasystemen, Netherlands
  8. Lines: 27
  9.  
  10.  
  11. I have a question regarding DLL's. What is the best way in a
  12. DLL to give back control to Windows by using PeekMessage/GetMessage?
  13.  
  14. Is it ok to just do this:
  15.  
  16. while not ready do
  17.   PeekMessage
  18.   if it's ours
  19.     do something
  20.   else
  21.     TranslateMessage
  22.     DispatchMessage
  23.   end
  24. end
  25.  
  26. or are there special considerations? I looked for examples, but I couldn't
  27. find one.
  28. Thanks in advance.
  29. -- 
  30. Raymond van der Laan           Email: sun4nl!media01!rla
  31. Mediasystemen BV               Tel. : +31 23-319075            
  32. Haarlem                        Fax  : +31 23-315210
  33. The Netherlands                                   
  34.                                     'There is no masterplan.
  35.                                      This is what we do now.'
  36.                                             - Stuart Adamson
  37.