Close the right window when clicking on a non active window close

button.
oldstable
Noomen Hamza 1999-07-31 19:35:58 +00:00 committed by Alexandre Julliard
parent 74197cb45d
commit d9d547168c
1 changed files with 3 additions and 14 deletions

View File

@ -2305,20 +2305,6 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam )
sizingRect.bottom - sizingRect.top,
( hittest == HTCAPTION ) ? SWP_NOSIZE : 0 );
}
else
{
/* if the moving/resizing is canceled and the window is not active
* call SetWindowPos to activate and to show this window
*/
if (GetActiveWindow() != hwnd)
SetWindowPos( hwnd, 0, 0, 0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW);
}
}
else
{
/* show the window if it is not moved/resized and it is not active */
if (GetActiveWindow() != hwnd)
SetWindowPos( hwnd, 0, 0, 0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW);
}
if( IsWindow(hwnd) )
@ -2583,6 +2569,9 @@ LONG NC_HandleNCLButtonDown( WND* pWnd, WPARAM16 wParam, LPARAM lParam )
{
HWND hwnd = pWnd->hwndSelf;
if(GetForegroundWindow() != hwnd)
SetWindowPos( hwnd, 0, 0, 0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_DRAWFRAME);
switch(wParam) /* Hit test */
{
case HTCAPTION: