Non active window should be activated when it gets any

client/non-client double/single left/medium/right mouse click(s).
This commit is contained in:
Noomen Hamza 1999-09-23 11:36:25 +00:00 committed by Alexandre Julliard
parent 2b4102e459
commit 5a3505c985
2 changed files with 1 additions and 4 deletions

View File

@ -283,7 +283,7 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
}
/* Caption clicks are handled by the NC_HandleNCLButtonDown() */
return (LOWORD(lParam) == HTCAPTION) ? MA_NOACTIVATE : MA_ACTIVATE;
return (LOWORD(lParam) >= HTCLIENT) ? MA_ACTIVATE : MA_NOACTIVATE;
case WM_ACTIVATE:
/* The default action in Windows is to set the keyboard focus to

View File

@ -2589,9 +2589,6 @@ 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: