Created
December 21, 2016 10:08
-
-
Save harujoh/8c763c498890fb5d570e3d790c594320 to your computer and use it in GitHub Desktop.
タブレットのジェスチャ入力を無効化する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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