user32: Send the same lParam with WM_SYSCOMMAND/SC_CLOSE as was received with WM_NCLBUTTONDOWN.
This commit is contained in:
parent
9dbdd708e3
commit
07a002f3b4
|
@ -1316,7 +1316,7 @@ static void NC_TrackMinMaxBox( HWND hwnd, WORD wParam )
|
||||||
*
|
*
|
||||||
* Track a mouse button press on the Win95 close button.
|
* 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;
|
MSG msg;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
@ -1364,7 +1364,7 @@ static void NC_TrackCloseButton (HWND hwnd, WORD wParam)
|
||||||
ReleaseDC( hwnd, hdc );
|
ReleaseDC( hwnd, hdc );
|
||||||
if (!pressed) return;
|
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;
|
break;
|
||||||
|
|
||||||
case HTCLOSE:
|
case HTCLOSE:
|
||||||
NC_TrackCloseButton (hwnd, wParam);
|
NC_TrackCloseButton (hwnd, wParam, lParam);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HTLEFT:
|
case HTLEFT:
|
||||||
|
|
Loading…
Reference in New Issue