Author: gadamopoulos
Date: Fri Mar 31 18:05:27 2017
New Revision: 74251
URL:
http://svn.reactos.org/svn/reactos?rev=74251&view=rev
Log:
[WIN32K] -Stub NtUserPaintMenuBar. I'm still not sure about the last parameter and its
return value.
Modified:
trunk/reactos/win32ss/user/ntuser/menu.c
trunk/reactos/win32ss/user/ntuser/ntstubs.c
Modified: trunk/reactos/win32ss/user/ntuser/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/menu.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] Fri Mar 31 18:05:27 2017
@@ -6045,6 +6045,41 @@
}
+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
*/
Modified: trunk/reactos/win32ss/user/ntuser/ntstubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/ntstub…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/ntstubs.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/ntstubs.c [iso-8859-1] Fri Mar 31 18:05:27 2017
@@ -878,21 +878,6 @@
DWORD
APIENTRY
-NtUserPaintMenuBar(
- HWND hWnd,
- HDC hDC,
- ULONG left,
- ULONG right,
- ULONG top,
- BOOL bActive)
-{
- STUB;
- return 0;
-}
-
-
-DWORD
-APIENTRY
NtUserRemoteConnect(
DWORD dwUnknown1,
DWORD dwUnknown2,