Results 1 to 3 of 3

Thread: Detect double click

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    canada
    Posts
    22

    Detect double click

    Is there any way using GetAsyncKeyState to detect a double click of the mouse. I know that the constant vbLeftButton and vbRightButton exist for single clicks but is there anything for a double click?



    Ryan

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    There are WM_LBUTTONDBLCLK & WM_RBUTTONDBLCLK
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I forgot to give you the values
    VB Code:
    1. Public Const WM_RBUTTONDBLCLK = &H206
    2. Public Const WM_LBUTTONDBLCLK = &H203
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width