From 4daf6ffcbc42e330aad75bd9f1bc85f7e7a1fdcf Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Fri, 31 Mar 2017 18:05:27 +0000 Subject: [PATCH] [WIN32K] -Stub NtUserPaintMenuBar. I'm still not sure about the last parameter and its return value. svn path=/trunk/; revision=74251 --- reactos/win32ss/user/ntuser/menu.c | 35 +++++++++++++++++++++++++++ reactos/win32ss/user/ntuser/ntstubs.c | 15 ------------ 2 files changed, 35 insertions(+), 15 deletions(-) diff --git a/reactos/win32ss/user/ntuser/menu.c b/reactos/win32ss/user/ntuser/menu.c index bbdf8099895..2d3ee0ef386 100644 --- a/reactos/win32ss/user/ntuser/menu.c +++ b/reactos/win32ss/user/ntuser/menu.c @@ -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 */ diff --git a/reactos/win32ss/user/ntuser/ntstubs.c b/reactos/win32ss/user/ntuser/ntstubs.c index 7716c83191c..51476fe9a2b 100644 --- a/reactos/win32ss/user/ntuser/ntstubs.c +++ b/reactos/win32ss/user/ntuser/ntstubs.c @@ -876,21 +876,6 @@ NtUserCalcMenuBar( return 0; } -DWORD -APIENTRY -NtUserPaintMenuBar( - HWND hWnd, - HDC hDC, - ULONG left, - ULONG right, - ULONG top, - BOOL bActive) -{ - STUB; - return 0; -} - - DWORD APIENTRY NtUserRemoteConnect(