* Sync up to trunk HEAD (r62975).
[reactos.git] / win32ss / user / user32 / windows / nonclient.c
index 4dab2d0..234f1b9 100644 (file)
@@ -1133,10 +1133,10 @@ 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)
       {
-         ERR("Msg pt %x and Msg.lParam %x and lParam %x\n",MAKELONG(msg.pt.x,msg.pt.y),msg.lParam,lParam);
-         SendMessageW( hwnd, WM_SYSCOMMAND, SC_MOUSEMENU + HTSYSMENU, msg.lParam );
+         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));
       }
       break;
   }