- Add support to scrolls too.
authorJames Tabor <james.tabor@reactos.org>
Thu, 17 Apr 2014 23:09:50 +0000 (23:09 +0000)
committerJames Tabor <james.tabor@reactos.org>
Thu, 17 Apr 2014 23:09:50 +0000 (23:09 +0000)
svn path=/trunk/; revision=62771

reactos/win32ss/user/user32/windows/nonclient.c

index ba179c8..234f1b9 100644 (file)
@@ -1133,7 +1133,7 @@ LRESULT NC_HandleNCRButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
           if (hwnd != GetCapture()) return 0;
       }
       ReleaseCapture();
-      if (hittest == HTCAPTION || hittest == HTSYSMENU)
+      if (hittest == HTCAPTION || hittest == HTSYSMENU || hittest == HTHSCROLL || hittest == HTVSCROLL)
       {
          TRACE("Msg pt %x and Msg.lParam %x and lParam %x\n",MAKELONG(msg.pt.x,msg.pt.y),msg.lParam,lParam);
          SendMessageW( hwnd, WM_CONTEXTMENU, (WPARAM)hwnd, MAKELONG(msg.pt.x,msg.pt.y));