don't maximize windows that don't have a maximize button when double-clicking the...
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 26 Dec 2003 01:21:17 +0000 (01:21 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 26 Dec 2003 01:21:17 +0000 (01:21 +0000)
svn path=/trunk/; revision=7246

reactos/lib/user32/windows/nonclient.c

index c4ffbe8..3532997 100644 (file)
@@ -923,7 +923,10 @@ DefWndNCLButtonDblClk(HWND hWnd, WPARAM wParam, LPARAM lParam)
     case HTCAPTION:
     {
       /* Maximize/Restore the window */
-      SendMessageW(hWnd, WM_SYSCOMMAND, ((Style & (WS_MINIMIZE | WS_MAXIMIZE)) ? SC_RESTORE : SC_MAXIMIZE), 0);
+      if((Style & WS_CAPTION) && (Style & WS_MAXIMIZEBOX))
+      {
+        SendMessageW(hWnd, WM_SYSCOMMAND, ((Style & (WS_MINIMIZE | WS_MAXIMIZE)) ? SC_RESTORE : SC_MAXIMIZE), 0);
+      }
       break;
     }
     case HTSYSMENU: