Answered How to disable touch right click in WinForm Control

  • Friday, July 20, 2012 7:55 AM
     
     

    I'm trying to create a repeat button control for my windows form application. There is a problem when use this button in touch screen. When I press the button by finger, the button can't receive WM_LBUTTONDOWN or OnMouseDown. A moment later, a rectangle will show on the screen around the finger. Release the finger will receive right button click message. How can I disable this effect? I find scroll bar's arrow button is ok for same operation. WPF's repeat button is ok too. Is there any way to get same result with WPF repeat button in WinForm platform? I try to handle WM_Gesture, WM_Touch in WinProc, but it do not work.

    Hope anyone can help me. Thank you very much.

    My test environment is Window8 RP and VisualStudio 2012.


    • Edited by robert.hu Friday, July 20, 2012 7:57 AM
    •  

All Replies

  • Monday, July 23, 2012 3:30 AM
     
     Answered

    I have solved this problem use "WM_TABLET_QUERYSYSTEMGESTURESTATUS" message.

    • Marked As Answer by robert.hu Monday, July 23, 2012 3:30 AM
    •