private readonly int _touchInputSize; // size of TouchInput structure #endregion #region Private members /// <summary> /// OnLoad window event handler: Registers the form for multi-touch input. /// </summary> /// <param name="sender">object that has sent the event</param> /// <param name="e">event arguments</param> private void OnLoadHandler(Object sender, EventArgs e) { const TouchWindowFlag ulFlags = TouchWindowFlag.None; if (!RegisterTouchWindow(Handle, ulFlags)) { ServiceRegistration.Get <ILogger>().Error("Could not register window for handling touch events"); } }
public static extern bool RegisterTouchWindow(IntPtr hWnd, TouchWindowFlag flags);
private static extern bool RegisterTouchWindow(System.IntPtr hWnd, TouchWindowFlag flags);