Hello bicoun,
From looking at the MDSN information about the
WM_MOUSEWHEEL event, you can detect if the mouse was moved up or down by seeing if the high order word of wParam is positive or negative. In particular, "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". The article suggests using the following code: zDelta = GET_WHEEL_DELTA_WPARAM(wParam).
Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter