Author: jimtabor
Date: Wed Sep 16 07:13:03 2015
New Revision: 69250
URL:
http://svn.reactos.org/svn/reactos?rev=69250&view=rev
Log:
[User32]
- Fix return for SCROLLBARINFO RECT to use screen coordinates. See CORE-9225.
Modified:
trunk/reactos/win32ss/user/user32/controls/scrollbar.c
trunk/reactos/win32ss/user/user32/user32.spec
Modified: trunk/reactos/win32ss/user/user32/controls/scrollbar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/scrollbar.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/scrollbar.c [iso-8859-1] Wed Sep 16
07:13:03 2015
@@ -1502,6 +1502,21 @@
/*
* @implemented
*/
+BOOL WINAPI GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO info)
+{
+ BOOL Ret;
+ PWND pWnd = ValidateHwnd(hwnd);
+ TRACE("hwnd=%p idObject=%d info=%p\n", hwnd, idObject, info);
+ if (!pWnd) return FALSE;
+ Ret = NtUserGetScrollBarInfo(hwnd, idObject, info); // This will be fixed once SB is
server side.
+ /* rcScrollBar needs to be in screen coordinates */
+ OffsetRect( &(info->rcScrollBar), pWnd->rcWindow.left,
pWnd->rcWindow.top );
+ return Ret;
+}
+
+/*
+ * @implemented
+ */
BOOL
WINAPI
DECLSPEC_HOTPATCH
Modified: trunk/reactos/win32ss/user/user32/user32.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/user32…
==============================================================================
--- trunk/reactos/win32ss/user/user32/user32.spec [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/user32.spec [iso-8859-1] Wed Sep 16 07:13:03 2015
@@ -345,7 +345,7 @@
342 stdcall GetReasonTitleFromReasonCode(long long long)
343 stdcall GetRegisteredRawInputDevices(ptr ptr long)
# GetRipFlags
-345 stdcall GetScrollBarInfo(long long ptr) NtUserGetScrollBarInfo
+345 stdcall GetScrollBarInfo(long long ptr) ; NtUserGetScrollBarInfo
346 stdcall GetScrollInfo(long long ptr)
347 stdcall GetScrollPos(long long)
348 stdcall GetScrollRange(long long ptr ptr)