xtd 0.2.0
Loading...
Searching...
No Matches

◆ mouse_wheel_scroll_lines()

static int32 xtd::forms::system_information::mouse_wheel_scroll_lines ( )
static

Gets the number of lines to scroll when the mouse wheel is rotated.

Returns
The number of lines to scroll on a mouse wheel rotation, or -1 if the "One screen at a time" mouse option is selected.
Remarks
The mouse_wheel_scroll_lines property indicates how many lines to scroll, by default, in a multi-line control that has a scroll bar. The corresponding Platform SDK system-wide parameters are SPI_GETWHEELSCROLLLINES and SPI_SETWHEELSCROLLLINES. For more information about system-wide parameters, see "SystemParametersInfo" in the Platform SDK documentation at https://msdn.microsoft.com.
Note
Be sure to handle the special case that occurs if the "One screen at a time" mouse option is selected. In this case, the mouse_wheel_scroll_lines property has a value of -1.