Commit d275253f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move NtUserSetMenuContextHelpId implementation from user32.

parent f57a3916
...@@ -5256,25 +5256,6 @@ BOOL WINAPI GetMenuInfo (HMENU hMenu, LPMENUINFO lpmi) ...@@ -5256,25 +5256,6 @@ BOOL WINAPI GetMenuInfo (HMENU hMenu, LPMENUINFO lpmi)
/********************************************************************** /**********************************************************************
* SetMenuContextHelpId (USER32.@)
*/
BOOL WINAPI SetMenuContextHelpId( HMENU hMenu, DWORD dwContextHelpID)
{
POPUPMENU *menu;
TRACE("(%p 0x%08x)\n", hMenu, dwContextHelpID);
if ((menu = grab_menu_ptr(hMenu)))
{
menu->dwContextHelpID = dwContextHelpID;
release_menu_ptr(menu);
return TRUE;
}
return FALSE;
}
/**********************************************************************
* GetMenuContextHelpId (USER32.@) * GetMenuContextHelpId (USER32.@)
*/ */
DWORD WINAPI GetMenuContextHelpId( HMENU hMenu ) DWORD WINAPI GetMenuContextHelpId( HMENU hMenu )
......
...@@ -679,7 +679,7 @@ ...@@ -679,7 +679,7 @@
@ stdcall SetLayeredWindowAttributes(ptr long long long) NtUserSetLayeredWindowAttributes @ stdcall SetLayeredWindowAttributes(ptr long long long) NtUserSetLayeredWindowAttributes
@ stdcall SetLogonNotifyWindow(long long) @ stdcall SetLogonNotifyWindow(long long)
@ stdcall SetMenu(long long) @ stdcall SetMenu(long long)
@ stdcall SetMenuContextHelpId(long long) @ stdcall SetMenuContextHelpId(long long) NtUserSetMenuContextHelpId
@ stdcall SetMenuDefaultItem(long long long) @ stdcall SetMenuDefaultItem(long long long)
@ stdcall SetMenuInfo(long ptr) @ stdcall SetMenuInfo(long ptr)
@ stdcall SetMenuItemBitmaps(long long long long long) @ stdcall SetMenuItemBitmaps(long long long long long)
......
...@@ -347,3 +347,18 @@ BOOL draw_menu_bar( HWND hwnd ) ...@@ -347,3 +347,18 @@ BOOL draw_menu_bar( HWND hwnd )
return NtUserSetWindowPos( hwnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | return NtUserSetWindowPos( hwnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE |
SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED ); SWP_NOACTIVATE | SWP_NOZORDER | SWP_FRAMECHANGED );
} }
/**********************************************************************
* NtUserSetMenuContextHelpId (win32u.@)
*/
BOOL WINAPI NtUserSetMenuContextHelpId( HMENU handle, DWORD id )
{
POPUPMENU *menu;
TRACE( "(%p 0x%08x)\n", handle, id );
if (!(menu = grab_menu_ptr( handle ))) return FALSE;
menu->dwContextHelpID = id;
release_menu_ptr( menu );
return TRUE;
}
...@@ -155,6 +155,7 @@ static void * const syscalls[] = ...@@ -155,6 +155,7 @@ static void * const syscalls[] =
NtUserRemoveClipboardFormatListener, NtUserRemoveClipboardFormatListener,
NtUserRemoveProp, NtUserRemoveProp,
NtUserSetKeyboardState, NtUserSetKeyboardState,
NtUserSetMenuContextHelpId,
NtUserSetObjectInformation, NtUserSetObjectInformation,
NtUserSetProcessDpiAwarenessContext, NtUserSetProcessDpiAwarenessContext,
NtUserSetProcessWindowStation, NtUserSetProcessWindowStation,
......
...@@ -1207,7 +1207,7 @@ ...@@ -1207,7 +1207,7 @@
@ stub NtUserSetMagnificationDesktopMagnifierOffsetsDWMUpdated @ stub NtUserSetMagnificationDesktopMagnifierOffsetsDWMUpdated
@ stub NtUserSetManipulationInputTarget @ stub NtUserSetManipulationInputTarget
@ stub NtUserSetMenu @ stub NtUserSetMenu
@ stub NtUserSetMenuContextHelpId @ stdcall -syscall NtUserSetMenuContextHelpId(long long)
@ stub NtUserSetMenuDefaultItem @ stub NtUserSetMenuDefaultItem
@ stub NtUserSetMenuFlagRtoL @ stub NtUserSetMenuFlagRtoL
@ stub NtUserSetMirrorRendering @ stub NtUserSetMirrorRendering
......
...@@ -142,6 +142,7 @@ ...@@ -142,6 +142,7 @@
SYSCALL_ENTRY( NtUserRemoveClipboardFormatListener ) \ SYSCALL_ENTRY( NtUserRemoveClipboardFormatListener ) \
SYSCALL_ENTRY( NtUserRemoveProp ) \ SYSCALL_ENTRY( NtUserRemoveProp ) \
SYSCALL_ENTRY( NtUserSetKeyboardState ) \ SYSCALL_ENTRY( NtUserSetKeyboardState ) \
SYSCALL_ENTRY( NtUserSetMenuContextHelpId ) \
SYSCALL_ENTRY( NtUserSetObjectInformation ) \ SYSCALL_ENTRY( NtUserSetObjectInformation ) \
SYSCALL_ENTRY( NtUserSetProcessDpiAwarenessContext ) \ SYSCALL_ENTRY( NtUserSetProcessDpiAwarenessContext ) \
SYSCALL_ENTRY( NtUserSetProcessWindowStation ) \ SYSCALL_ENTRY( NtUserSetProcessWindowStation ) \
......
...@@ -641,3 +641,11 @@ NTSTATUS WINAPI wow64_NtUserCheckMenuItem( UINT *args ) ...@@ -641,3 +641,11 @@ NTSTATUS WINAPI wow64_NtUserCheckMenuItem( UINT *args )
return NtUserCheckMenuItem( handle, id, flags ); return NtUserCheckMenuItem( handle, id, flags );
} }
NTSTATUS WINAPI wow64_NtUserSetMenuContextHelpId( UINT *args )
{
HMENU menu = get_handle( &args );
DWORD id = get_ulong( &args );
return NtUserSetMenuContextHelpId( menu, id );
}
...@@ -553,6 +553,7 @@ BOOL WINAPI NtUserSetCursorPos( INT x, INT y ); ...@@ -553,6 +553,7 @@ BOOL WINAPI NtUserSetCursorPos( INT x, INT y );
HWND WINAPI NtUserSetFocus( HWND hwnd ); HWND WINAPI NtUserSetFocus( HWND hwnd );
BOOL WINAPI NtUserSetKeyboardState( BYTE *state ); BOOL WINAPI NtUserSetKeyboardState( BYTE *state );
BOOL WINAPI NtUserSetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags ); BOOL WINAPI NtUserSetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWORD flags );
BOOL WINAPI NtUserSetMenuContextHelpId( HMENU handle, DWORD id );
HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent ); HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent );
BOOL WINAPI NtUserSetProcessDpiAwarenessContext( ULONG awareness, ULONG unknown ); BOOL WINAPI NtUserSetProcessDpiAwarenessContext( ULONG awareness, ULONG unknown );
BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle ); BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment