[comp.windows.ms.programmer] Deleting messages from the message queue

grogers@eniac.seas.upenn.edu (Gregory Rogers) (04/12/91)

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