reaper-oss / sws

The SWS extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc
https://www.sws-extension.org/
MIT License
456 stars 85 forks source link

Misnamed BR_Win32_SendMessage() arguments in the API doc #1900

Closed Buy-One closed 2 months ago

Buy-One commented 2 months ago

As per the doc the 3d and 4th arguments are lParam, wParam

reaper.BR_Win32_SendMessage(identifier hwnd, integer msg, integer lParam, integer wParam)

According to WM_SCROLL command description, parameters SB_LINEDOWN (integer 1) and SB_LINEUP (integer 0) must be passed as wParam.

But in actuality the function only works if they're passed as the 3d parameter, that is lParam as per the doc, which leads me to believe that they have been misnamed. This of course applies not only to SB_LINEDOWN/UP.

Changing the value of the nominal wParam argument (the 4th one) in the animation doesn't affect the result.

BR_Win32_SendMessage mixed up arguments