Dmitry Timoshkov : user32: Send the same lParam with WM_SYSCOMMAND/ SC_CLOSE as was received with WM_NCLBUTTONDOWN.
Alexandre Julliard
julliard at winehq.org
Wed Sep 9 09:56:36 CDT 2009
Module: wine
Branch: master
Commit: 07a002f3b4d4d8c3aeac4721c76f97d104c3ac5a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=07a002f3b4d4d8c3aeac4721c76f97d104c3ac5a
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Wed Sep 9 17:22:33 2009 +0900
user32: Send the same lParam with WM_SYSCOMMAND/SC_CLOSE as was received with WM_NCLBUTTONDOWN.
---
dlls/user32/nonclient.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index 708ed80..3353126 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -1316,7 +1316,7 @@ static void NC_TrackMinMaxBox( HWND hwnd, WORD wParam )
*
* Track a mouse button press on the Win95 close button.
*/
-static void NC_TrackCloseButton (HWND hwnd, WORD wParam)
+static void NC_TrackCloseButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
MSG msg;
HDC hdc;
@@ -1364,7 +1364,7 @@ static void NC_TrackCloseButton (HWND hwnd, WORD wParam)
ReleaseDC( hwnd, hdc );
if (!pressed) return;
- SendMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, MAKELONG(msg.pt.x,msg.pt.y) );
+ SendMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, lParam );
}
@@ -1442,7 +1442,7 @@ LRESULT NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
break;
case HTCLOSE:
- NC_TrackCloseButton (hwnd, wParam);
+ NC_TrackCloseButton (hwnd, wParam, lParam);
break;
case HTLEFT:
More information about the wine-cvs
mailing list