Input for WinForms | ComponentOne
C1.Util.Win Namespace / Win32 Class / GET_WHEEL_DELTA_WPARAM Method
The value to be converted.

In This Topic
    GET_WHEEL_DELTA_WPARAM Method
    In This Topic
    Retrieves the wheel-delta value from the specified WPARAM value.
    Syntax
    'Declaration
     
    
    Public Shared Function GET_WHEEL_DELTA_WPARAM( _
       ByVal wParam As IntPtr _
    ) As Integer
    public static int GET_WHEEL_DELTA_WPARAM( 
       IntPtr wParam
    )

    Parameters

    wParam
    The value to be converted.

    Return Value

    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.
    Remarks
    Use: WM_MOUSEWHEEL - zDelta
    See Also