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); } }
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); } }