Windows Mobile 6.5 gestures and C # 2.0 app

I am looking for tips for working with WM 6.5 Gestures in a C # 2.0 application. Currently, things like panning and scrolling affect controls such as tab management and watchlists.

Is there a way to catch them using C # 2.0 and process them? I looked at MSDN shells, etc., but they are built using .Net 3.5 and do not work with my application, and I continue to receive errors.

Thanks for your help in advance,

Morris

+5
source share
2 answers

"DisableGestures" coredll.dll?

[DllImport("coredll.dll")]
private static extern bool DisableGestures(IntPtr p_ipHwnd, UInt64 p_uiTGFflags, uint p_uiScope);

private const UInt64 TGF_GID_BEGIN        = 0x0000000000000002;
private const UInt64 TGF_GID_END          = 0x0000000000000008;
private const UInt64 TGF_GID_PAN          = 0x0000000000000100;
private const UInt64 TGF_GID_ROTATE       = 0x0000000000000200;
private const UInt64 TGF_GID_SCROLL       = 0x0000000000001000;
private const UInt64 TGF_GID_HOLD         = 0x0000000000002000;
private const UInt64 TGF_GID_SELECT       = 0x0000000000004000;
private const UInt64 TGF_GID_DOUBLESELECT = 0x0000000000008000;
private const UInt64 TGF_GID_LAST         = 0x0000000000008000;
private const UInt64 TGF_GID_MAX          = 0x8000000000000000;
private const UInt64 TGF_GID_ALL          = 0xFFFFFFFFFFFFFFFF;

private const uint TGF_SCOPE_WINDOW  = 0x0000;
private const uint TGF_SCOPE_PROCESS = 0x0001;

public frmMain()
{
  InitializeComponent();

  DisableGestures(null, TGF_GID_ALL, TGF_SCOPE_PROCESS);
}

.

+2

All Articles