c++ - Correct mouse event order on a doubleclick -


what's correct order of events should see when user double click?

  • down - - down - doubleclick - up
  • down - - doubleclick - down - up
  • down - - doubleclick - up

is platform specific? how should work in windows?

for windows api - variant 3:

only windows have cs_dblclks style can receive wm_lbuttondblclk messages, system generates whenever user presses, releases, , again presses left mouse button within system's double-click time limit. double-clicking left mouse button generates sequence of 4 messages: wm_lbuttondown, wm_lbuttonup, wm_lbuttondblclk, , wm_lbuttonup.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645606(v=vs.85).aspx


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -