Zebediah Figura : user32: Allow clicking the restore and maximize boxes for on minimized windows.

Alexandre Julliard julliard at winehq.org
Tue Feb 19 15:29:35 CST 2019


Module: wine
Branch: master
Commit: c45f60450aee5a8175ea77a2c02dfa251e834f93
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c45f60450aee5a8175ea77a2c02dfa251e834f93

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Feb 19 12:17:43 2019 -0600

user32: Allow clicking the restore and maximize boxes for on minimized windows.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/nonclient.c | 1 -
 dlls/user32/winpos.c    | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index 0e15e95..372b1be 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -473,7 +473,6 @@ LRESULT NC_HandleNCHitTest( HWND hwnd, POINT pt )
 
     style = GetWindowLongW( hwnd, GWL_STYLE );
     ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
-    if (style & WS_MINIMIZE) return HTCAPTION;
 
     if (PtInRect( &rcClient, pt )) return HTCLIENT;
 
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 4a28a6f..acd748f 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -305,11 +305,6 @@ HWND WINPOS_WindowFromPoint( HWND hwndScope, POINT pt, INT *hittest )
         LONG style = GetWindowLongW( list[i], GWL_STYLE );
 
         /* If window is minimized or disabled, return at once */
-        if (style & WS_MINIMIZE)
-        {
-            *hittest = HTCAPTION;
-            break;
-        }
         if (style & WS_DISABLED)
         {
             *hittest = HTERROR;




More information about the wine-cvs mailing list