Commit 540dc761 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Move SetWindowContextHelpId implementation from user32.

parent b2db69ef
......@@ -1475,16 +1475,7 @@ DWORD WINAPI GetWindowContextHelpId( HWND hwnd )
*/
BOOL WINAPI SetWindowContextHelpId( HWND hwnd, DWORD id )
{
WND *wnd = WIN_GetPtr( hwnd );
if (!wnd || wnd == WND_DESKTOP) return FALSE;
if (wnd == WND_OTHER_PROCESS)
{
if (IsWindow( hwnd )) FIXME( "not supported on other process window %p\n", hwnd );
return FALSE;
}
wnd->helpContext = id;
WIN_ReleasePtr( wnd );
return TRUE;
return NtUserSetWindowContextHelpId( hwnd, id );
}
......
......@@ -4539,6 +4539,21 @@ static DWORD get_window_context_help_id( HWND hwnd )
return retval;
}
/* see SetWindowContextHelpId */
static BOOL set_window_context_help_id( HWND hwnd, DWORD id )
{
WND *win = get_win_ptr( hwnd );
if (!win || win == WND_DESKTOP) return FALSE;
if (win == WND_OTHER_PROCESS)
{
if (is_window( hwnd )) FIXME( "not supported on other process window %p\n", hwnd );
return FALSE;
}
win->helpContext = id;
release_win_ptr( win );
return TRUE;
}
/***********************************************************************
* send_destroy_message
*/
......@@ -5432,6 +5447,9 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
case NtUserCallHwndParam_SetForegroundWindow:
return set_foreground_window( hwnd, param );
case NtUserCallHwndParam_SetWindowContextHelpId:
return set_window_context_help_id( hwnd, param );
case NtUserCallHwndParam_SetWindowPixelFormat:
return set_window_pixel_format( hwnd, param );
......
......@@ -1021,6 +1021,7 @@ enum
NtUserCallHwndParam_MonitorFromWindow,
NtUserCallHwndParam_ScreenToClient,
NtUserCallHwndParam_SetForegroundWindow,
NtUserCallHwndParam_SetWindowContextHelpId,
NtUserCallHwndParam_SetWindowPixelFormat,
NtUserCallHwndParam_ShowOwnedPopups,
/* temporary exports */
......@@ -1171,6 +1172,11 @@ static inline BOOL NtUserSetForegroundWindow( HWND hwnd, BOOL mouse )
return NtUserCallHwndParam( hwnd, mouse, NtUserCallHwndParam_SetForegroundWindow );
}
static inline BOOL NtUserSetWindowContextHelpId( HWND hwnd, DWORD id )
{
return NtUserCallHwndParam( hwnd, id, NtUserCallHwndParam_SetWindowContextHelpId );
}
static inline BOOL NtUserSetWindowPixelFormat( HWND hwnd, int format )
{
return NtUserCallHwndParam( hwnd, format, NtUserCallHwndParam_SetWindowPixelFormat );
......
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