Clearing buffer of user actions

  • Thread starter Thread starter Alberto Silva - MVP
  • Start date Start date
A

Alberto Silva - MVP

Hi,
Is there a way to 'clear' the buffer of clicks made by the user?

Some times I get the same action twice (with graphical buttons)...

Thanks,
Alberto Silva
 
I've never tried it, but you could call PeekMessage() over and over again
until it returns that there are no more messages in the queue. It may not
remove WM_PAINT messages, either. That's the only potential way to do it
that I see...

Paul T.
 
Back
Top