diff --git a/Breeder/BR_ReaScript.cpp b/Breeder/BR_ReaScript.cpp index e7dbc6d9..a2142ccd 100644 --- a/Breeder/BR_ReaScript.cpp +++ b/Breeder/BR_ReaScript.cpp @@ -1204,9 +1204,9 @@ void BR_Win32_ScreenToClient(void* hwnd, int xIn, int yIn, int* xOut, int* yOut) WritePtr(yOut, (int)p.y); } -int BR_Win32_SendMessage(void* hwnd, int msg, int lParam, int wParam) +int BR_Win32_SendMessage(void* hwnd, int msg, int wParam, int lParam) { - return (int)SendMessage((HWND)hwnd, msg, lParam, wParam); + return (int)SendMessage((HWND)hwnd, msg, wParam, lParam); } void* BR_Win32_SetFocus(void* hwnd) diff --git a/Breeder/BR_ReaScript.h b/Breeder/BR_ReaScript.h index 4de8d874..58855614 100644 --- a/Breeder/BR_ReaScript.h +++ b/Breeder/BR_ReaScript.h @@ -126,7 +126,7 @@ int BR_Win32_MAKEWORD (int low, int high); int BR_Win32_MAKEWPARAM (int low, int high); void* BR_Win32_MIDIEditor_GetActive (); void BR_Win32_ScreenToClient (void* hwnd, int xIn, int yIn, int* xOut, int* yOut); -int BR_Win32_SendMessage (void* hwnd, int msg, int lParam, int wParam); +int BR_Win32_SendMessage (void* hwnd, int msg, int wParam, int lParam); void* BR_Win32_SetFocus (void* hwnd); int BR_Win32_SetForegroundWindow (void* hwnd); int BR_Win32_SetWindowLong (void* hwnd, int index, int newLong); diff --git a/ReaScript.cpp b/ReaScript.cpp index a1b29c21..15f4d9f0 100644 --- a/ReaScript.cpp +++ b/ReaScript.cpp @@ -274,7 +274,7 @@ APIdef g_apidefs[] = { APIFUNC(BR_Win32_MAKEWPARAM), "int", "int,int", "low,high", "[BR] Equivalent to win32 API MAKEWPARAM().", }, { APIFUNC(BR_Win32_MIDIEditor_GetActive), "void*", "", "", "[BR] Alternative to MIDIEditor_GetActive. REAPER seems to have problems with extensions using HWND type for exported functions so all BR_Win32 functions use void* instead of HWND type.", }, { APIFUNC(BR_Win32_ScreenToClient), "void", "void*,int,int,int*,int*", "hwnd,xIn,yIn,xOut,yOut", "[BR] Equivalent to win32 API ClientToScreen().", }, - { APIFUNC(BR_Win32_SendMessage), "int", "void*,int,int,int", "hwnd,msg,lParam,wParam", "[BR] Equivalent to win32 API SendMessage().", }, + { APIFUNC(BR_Win32_SendMessage), "int", "void*,int,int,int", "hwnd,msg,wParam,lParam", "[BR] Equivalent to win32 API SendMessage().", }, { APIFUNC(BR_Win32_SetFocus), "void*", "void*", "hwnd", "[BR] Equivalent to win32 API SetFocus().", }, { APIFUNC(BR_Win32_SetForegroundWindow), "int", "void*", "hwnd", "[BR] Equivalent to win32 API SetForegroundWindow().", }, { APIFUNC(BR_Win32_SetWindowLong), "int", "void*,int,int", "hwnd,index,newLong", "[BR] Equivalent to win32 API SetWindowLong().", },