Esempio n. 1
0
 private void TryEnabledTouchMessage(Subclass subclass, User32.TouchWindowFlags mode)
 {
     if (!User32.RegisterTouchWindow(subclass.HWnd, mode))
     {
         FLogger.Log(LogType.Error, "Failed to enabled touch messages for window {0}.", subclass.HWnd);
     }
 }
Esempio n. 2
0
 private bool TryRegisterTouch(Subclass subclass, User32.TouchWindowFlags mode)
 {
     if (User32.RegisterTouchWindow(subclass.HWnd, mode))
     {
         TouchEnabledWindows.Add(subclass);
         return(true);
     }
     else
     {
         FLogger.Log(LogType.Error, "Failed to enable touch messages for window {0}.", subclass.HWnd);
         return(false);
     }
 }