win32u: Move GetClientRect implementation from user32.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
441522add7
commit
fd5849382a
|
@ -225,7 +225,7 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw )
|
|||
*/
|
||||
BOOL WINAPI GetClientRect( HWND hwnd, LPRECT rect )
|
||||
{
|
||||
return WIN_GetRectangles( hwnd, COORDS_CLIENT, NULL, rect );
|
||||
return NtUserCallHwndParam( hwnd, (UINT_PTR)rect, NtUserGetClientRect );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1139,6 +1139,12 @@ BOOL get_window_rect( HWND hwnd, RECT *rect )
|
|||
return get_window_rects( hwnd, COORDS_SCREEN, rect, NULL, get_thread_dpi() );
|
||||
}
|
||||
|
||||
/* see GetClientRect */
|
||||
static BOOL get_client_rect( HWND hwnd, RECT *rect )
|
||||
{
|
||||
return get_window_rects( hwnd, COORDS_CLIENT, NULL, rect, get_thread_dpi() );
|
||||
}
|
||||
|
||||
/* see GetWindowInfo */
|
||||
static BOOL get_window_info( HWND hwnd, WINDOWINFO *info )
|
||||
{
|
||||
|
@ -1357,6 +1363,8 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
|
|||
return get_class_long_ptr( hwnd, param, FALSE );
|
||||
case NtUserGetClassWord:
|
||||
return get_class_word( hwnd, param );
|
||||
case NtUserGetClientRect:
|
||||
return get_client_rect( hwnd, (RECT *)param );
|
||||
case NtUserGetWindowInfo:
|
||||
return get_window_info( hwnd, (WINDOWINFO *)param );
|
||||
case NtUserGetWindowLongA:
|
||||
|
|
|
@ -160,6 +160,7 @@ enum
|
|||
NtUserGetClassLongPtrA,
|
||||
NtUserGetClassLongPtrW,
|
||||
NtUserGetClassWord,
|
||||
NtUserGetClientRect,
|
||||
NtUserGetWindowInfo,
|
||||
NtUserGetWindowLongA,
|
||||
NtUserGetWindowLongW,
|
||||
|
|
Loading…
Reference in New Issue