🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.misc
Article #643

DLL's and PeekMessage

#643
From: Raymond van der Laan
Date: Thu, 19 Nov 1992 17:08
27 lines
1099 bytes
I have a question regarding DLL's. What is the best way in a
DLL to give back control to Windows by using PeekMessage/GetMessage?

Is it ok to just do this:

while not ready do
  PeekMessage
  if it's ours
    do something
  else
    TranslateMessage
    DispatchMessage
  end
end

or are there special considerations? I looked for examples, but I couldn't
find one.
Thanks in advance.
-- 
Raymond van der Laan           Email: sun4nl!media01!rla
Mediasystemen BV               Tel. : +31 23-319075            
Haarlem                        Fax  : +31 23-315210
The Netherlands                                   
                                    'There is no masterplan.
                                     This is what we do now.'
                                            - Stuart Adamson
Technical Details
Message-ID: <2898@media03.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!media03!rla

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!media03!rla
From: rla@media03.UUCP (Raymond van der Laan)
Newsgroups: comp.windows.misc
Subject: DLL's and PeekMessage
Message-ID: <2898@media03.UUCP>
Date: 19 Nov 92 17:08:27 GMT
Organization: Mediasystemen, Netherlands
Lines: 27