Author: jimtabor
Date: Sat Apr 1 02:01:59 2017
New Revision: 74258
URL:
http://svn.reactos.org/svn/reactos?rev=74258&view=rev
Log:
[Win32SS]
- Patch by Alex Henrie : Translate WM_(NC)XBUTTONUP to WM_APPCOMMAND in DefWindowProc.
- Modified for ReactOS.
Modified:
trunk/reactos/win32ss/user/ntuser/defwnd.c
trunk/reactos/win32ss/user/user32/windows/defwnd.c
Modified: trunk/reactos/win32ss/user/ntuser/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/defwnd…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/defwnd.c [iso-8859-1] Sat Apr 1 02:01:59 2017
@@ -720,6 +720,16 @@
*/
ERR("WM_NCRBUTTONUP\n");
break;
+
+ case WM_XBUTTONUP:
+ case WM_NCXBUTTONUP:
+ if (HIWORD(wParam) == XBUTTON1 || HIWORD(wParam) == XBUTTON2)
+ {
+ co_IntSendMessage(UserHMGetHandle(Wnd), WM_APPCOMMAND,
(WPARAM)UserHMGetHandle(Wnd),
+ MAKELPARAM(LOWORD(wParam), FAPPCOMMAND_MOUSE |
HIWORD(wParam)));
+ }
+ break;
+
case WM_CONTEXTMENU:
{
Modified: trunk/reactos/win32ss/user/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/defwnd.c [iso-8859-1] Sat Apr 1 02:01:59
2017
@@ -374,6 +374,15 @@
* message to the window". When is it appropriate?
*/
ERR("WM_NCRBUTTONUP\n");
+ break;
+
+ case WM_XBUTTONUP:
+ case WM_NCXBUTTONUP:
+ if (HIWORD(wParam) == XBUTTON1 || HIWORD(wParam) == XBUTTON2)
+ {
+ SendMessageW(hWnd, WM_APPCOMMAND, (WPARAM)hWnd,
+ MAKELPARAM(LOWORD(wParam), FAPPCOMMAND_MOUSE |
HIWORD(wParam)));
+ }
break;
case WM_CONTEXTMENU: