From 5538ec4661a2379bf2aa32b6d20a301811c0fbe7 Mon Sep 17 00:00:00 2001 From: Francois Boisvert Date: Sat, 29 Jul 2000 00:00:29 +0000 Subject: [PATCH] NC_DoNCHitTest now returns HTNOWHERE like Windows is doing when clicking on a window having a customize non client area. --- windows/nonclient.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/windows/nonclient.c b/windows/nonclient.c index 8a7b6c5300..5bf6daaa8a 100644 --- a/windows/nonclient.c +++ b/windows/nonclient.c @@ -785,8 +785,9 @@ static LONG NC_DoNCHitTest (WND *wndPtr, POINT16 pt ) return HTMENU; } - /* Should never get here */ - return HTERROR; + /* Has to return HTNOWHERE if nothing was found + Could happen when a window has a customized non client area */ + return HTNOWHERE; } @@ -934,8 +935,9 @@ NC_DoNCHitTest95 (WND *wndPtr, POINT16 pt ) return HTMENU; } - /* Should never get here */ - return HTERROR; + /* Has to return HTNOWHERE if nothing was found + Could happen when a window has a customized non client area */ + return HTNOWHERE; } @@ -2132,7 +2134,6 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam ) if ((wParam & 0xfff0) == SC_MOVE) { - if (!(wndPtr->dwStyle & WS_CAPTION)) goto END; if (!hittest) hittest = NC_StartSizeMove( wndPtr, wParam, &capturePoint ); if (!hittest) goto END;