🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.misc
1 messages
1 total messages Started by Raymond van der Laan Thu, 19 Nov 1992 17:08
DLL's and PeekMessage
#643
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads