Skip to content

Instantly share code, notes, and snippets.

@harujoh
Created December 21, 2016 10:08
Show Gist options
  • Save harujoh/8c763c498890fb5d570e3d790c594320 to your computer and use it in GitHub Desktop.
Save harujoh/8c763c498890fb5d570e3d790c594320 to your computer and use it in GitHub Desktop.
タブレットのジェスチャ入力を無効化する
private const int WM_GESTURE = 0x0119;
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_GESTURE:
m.Result = IntPtr.Zero;
break;
default:
base.WndProc(ref m);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment