How to clear mouse click buffer

主宰稳场 提交于 2019-12-23 16:02:35

问题


We may use the following code to clear keyboard buffer:

while PeekMessage(Msg, 0, WM_KEYFIRST, WM_KEYLAST, PM_REMOVE or PM_NOYIELD) do;

But how may I clear mouse click buffer?


回答1:


I got it:

while PeekMessage(Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE or PM_NOYIELD) do;


来源:https://stackoverflow.com/questions/2400332/how-to-clear-mouse-click-buffer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!