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

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