[WIN32K] -Stub NtUserPaintMenuBar. I'm still not sure about the last parameter and...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 18:05:27 +0000 (18:05 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Fri, 31 Mar 2017 18:05:27 +0000 (18:05 +0000)
svn path=/trunk/; revision=74251

reactos/win32ss/user/ntuser/menu.c
reactos/win32ss/user/ntuser/ntstubs.c

index bbdf809..2d3ee0e 100644 (file)
@@ -6045,6 +6045,41 @@ CLEANUP:
 }
 
 
 }
 
 
+DWORD
+APIENTRY
+NtUserPaintMenuBar(
+    HWND hWnd,
+    HDC hDC,
+    ULONG left,
+    ULONG right,
+    ULONG top,
+    BOOL bActive)
+{
+   PWND Window;
+   RECT Rect;
+
+   UserEnterExclusive();
+
+   if(!(Window = UserGetWindowObject(hWnd)))
+   {
+      EngSetLastError(ERROR_INVALID_WINDOW_HANDLE);
+      UserLeave();
+      return 0;
+   }
+
+   Rect.left = left;
+   Rect.right = right;
+   Rect.top = top;
+   Rect.bottom = 0;
+
+   MENU_DrawMenuBar(hDC, &Rect, Window, FALSE);
+
+   UserLeave();
+
+   /* I am not sure about what this function returns */
+   return 0;
+}
+
 /*
  * @implemented
  */
 /*
  * @implemented
  */
index 7716c83..51476fe 100644 (file)
@@ -876,21 +876,6 @@ NtUserCalcMenuBar(
     return 0;
 }
 
     return 0;
 }
 
-DWORD
-APIENTRY
-NtUserPaintMenuBar(
-    HWND hWnd,
-    HDC hDC,
-    ULONG left,
-    ULONG right,
-    ULONG top,
-    BOOL bActive)
-{
-    STUB;
-    return 0;
-}
-
-
 DWORD
 APIENTRY
 NtUserRemoteConnect(
 DWORD
 APIENTRY
 NtUserRemoteConnect(