Exemplo n.º 1
0
        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");
            }
        }
Exemplo n.º 2
0
 public static extern bool RegisterTouchWindow(IntPtr hWnd, TouchWindowFlag flags);
Exemplo n.º 3
0
 private static extern bool RegisterTouchWindow(System.IntPtr hWnd, TouchWindowFlag flags);
 public static extern bool RegisterTouchWindow(IntPtr hWnd, TouchWindowFlag flags);