🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2046

Deleting messages from the message queue

#2046
From: Gregory Rogers
Date: Thu, 11 Apr 1991 17:15
19 lines
1446 bytes
I'm writing a an application which uses the WM_TIMER message to pace a
series of events.  There is no problem with these messages not coming
at their appropriate time when the user is resizing or moving the
window.  It is important however, that they be processed in relatively
timely fashion while the user is press the mouse buttons.

It is not important for the mouse actions to be buffered.  So, I was
wondering if it would be possible to delete all other occurances of
WM_LMOUSEDOWN (I forget if this is the correct name of the message)
that are in the message queue during the processing of a single
WM_LMOUSEDOWN.  This way, the user could not suspend all action by
simply rapidly pressing the mouse buttons.

Can this be done?  If not (or even if so), is there a better approach
to assuring that some action can be performed in some timely fashion?

Thanks,
Greg
Technical Details
Message-ID: <40932@netnews.upenn.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!widener!netnews.upenn.edu!eniac.seas.upenn.edu!grogers

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!widener!netnews.upenn.edu!eniac.seas.upenn.edu!grogers
From: grogers@eniac.seas.upenn.edu (Gregory Rogers)
Newsgroups: comp.windows.ms.programmer
Subject: Deleting messages from the message queue
Message-ID: <40932@netnews.upenn.edu>
Date: 11 Apr 91 17:15:55 GMT
Sender: news@netnews.upenn.edu
Reply-To: grogers@eniac.seas.upenn.edu (Gregory Rogers)
Organization: University of Pennsylvania
Lines: 19
Nntp-Posting-Host: eniac.seas.upenn.edu