Article View: comp.os.ms-windows.programmer.misc
Article #2160DLL's and PeekMessage
From: Raymond van der Laan
Date: Fri, 20 Nov 1992 10:36
Date: Fri, 20 Nov 1992 10:36
27 lines
1154 bytes
1154 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:
<2901@media03.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!media03!rlaShow 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.os.ms-windows.programmer.misc Subject: DLL's and PeekMessage Keywords: waiting for message in DLL Message-ID: <2901@media03.UUCP> Date: 20 Nov 92 10:36:13 GMT Organization: Mediasystemen, Netherlands Lines: 27