Edit

Share via


GET_WHEEL_DELTA_WPARAM macro (winuser.h)

Retrieves the wheel-delta value from the specified WPARAM value.

Syntax

short GET_WHEEL_DELTA_WPARAM(
    WPARAM wParam
);

Parameters

wParam

The value to be converted.

Return value

Type: short

The return value is the high-order word representing the wheel-delta value. It indicates the distance that the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)

See also

Mouse Input Overview