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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top