Alteridem.WinTouch.NativeMethods.SetGestureConfig C# (CSharp) Method

SetGestureConfig() public static method

Registers the HWND to receive all gestures.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd353231%28v=vs.85%29.aspx
public static SetGestureConfig ( IntPtr hwnd ) : bool
hwnd System.IntPtr The HWND.
return bool
        public static bool SetGestureConfig( IntPtr hwnd )
        {
            if ( _pSetGestureConfig == null )
                return false;

            var configs = new[] { new GestureConfig( 0, GestureConfigurationFlag.GC_ALLGESTURES, 0 ) };
            return SetGestureConfig(hwnd, configs);
        }

Same methods

NativeMethods::SetGestureConfig ( IntPtr hwnd, GestureConfig configs ) : bool

Usage Example

示例#1
0
 private void Initialize(Control parent)
 {
     AssignHandle(parent.Handle);
     NativeMethods.SetGestureConfig(parent.Handle, m_configs);
 }