DisableMouseHorizontalWheelSupport Method
DisableMouseHorizontalWheelSupport(IntPtr)
Disable Horizontal Wheel support for all the controls inside the HWND. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
Declaration
public static bool DisableMouseHorizontalWheelSupport(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | HWND handle to disable support for. |
Returns
Type | Description |
---|---|
System.Boolean | True if it was disabled or already disabled, false if it couldn't be disabled. |
DisableMouseHorizontalWheelSupport(Window)
Disable Horizontal Wheel support for all the controls inside the window. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
Declaration
public static bool DisableMouseHorizontalWheelSupport(Window window)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Window | window | Window to disable support for. |
Returns
Type | Description |
---|---|
System.Boolean | True if it was disabled or already disabled, false if it couldn't be disabled. |
DisableMouseHorizontalWheelSupport(Popup)
Disable Horizontal Wheel support for all the controls inside the popup. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
Declaration
public static bool DisableMouseHorizontalWheelSupport(Popup popup)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Primitives.Popup | popup | Popup to disable support for. |
Returns
Type | Description |
---|---|
System.Boolean | True if it was disabled or already disabled, false if it couldn't be disabled. |
DisableMouseHorizontalWheelSupport(ContextMenu)
Disable Horizontal Wheel support for all the controls inside the context menu. This method does not need to be called in most cases. This does not include popups or sub-context menus. If it was already disabled it will do nothing.
Declaration
public static bool DisableMouseHorizontalWheelSupport(ContextMenu contextMenu)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.ContextMenu | contextMenu | Context menu to disable support for. |
Returns
Type | Description |
---|---|
System.Boolean | True if it was disabled or already disabled, false if it couldn't be disabled. |