How to change Left Click to Double Click?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wizi
    New Member
    • Jan 2010
    • 2

    How to change Left Click to Double Click?

    Hi everyone,
    I am writing an application that allows users change Left Click to Right and Double Click.
    For example: if an user hit the "Double Click" button, Left click = Double Click.


    For Left Mouse Click to Right Mouse click, I use SwapMouseButton ();
    But I am stuck at converting LEFT click to DOuble Click....

    Could someone please help me with this? Thank you very much,

    Sorry about my English.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    SwapMouseButton () is intended to swap only the left and right button. It is supposed to be called only by Control Panel. That's becuse the mouse is a shared resource and once you swap the buttoins, you have swapped them for all applicationsa that runb on your machine.

    There's no swap for a double click.

    I suggest you write a handler for WM_LBUTTONDBLCK and in that handler generate the correct WM_ message for whatever button you want. This was the swap will occur each time you double click.

    Don't forget to use Google.

    Comment

    • wizi
      New Member
      • Jan 2010
      • 2

      #3
      Hi,
      I already found the solution for this.
      Just for future reference, here is the solution


      Thank you for your help.
      Forward Message

      Comment

      Working...