Author: janderwald
Date: Mon Sep 3 07:49:23 2007
New Revision: 28798
URL:
http://svn.reactos.org/svn/reactos?rev=28798&view=rev
Log:
- scroll window with ScrollWindowEx
- fix a bug in GuiConsoleWndProc
- scrolling does not work yet
Modified:
trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c Mon Sep 3 07:49:23 2007
@@ -1745,7 +1745,7 @@
static
LRESULT
-GuiConsoleHandleScroll(HWND hwnd, UINT uMsg, WPARAM wParam)
+GuiConsoleHandleScroll(HWND hwnd, UINT uMsg, WPARAM wParam, PGUI_CONSOLE_DATA GuiData)
{
SCROLLINFO sInfo;
int old_pos;
@@ -1793,10 +1793,6 @@
sInfo.nPos = sInfo.nMax;
break;
- break;
-
-
-
default:
break;
}
@@ -1825,8 +1821,16 @@
/// fixme scroll window
///
- // ScrollWindow
- //UpdateWindow(hwnd);
+ ScrollWindowEx(hwnd,
+ 0,
+ GuiData->CharHeight * (old_pos - sInfo.nPos),
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ SW_INVALIDATE);
+
+ UpdateWindow(hwnd);
}
return 0;
}
@@ -1881,7 +1885,7 @@
break;
case WM_HSCROLL:
case WM_VSCROLL:
- Result = GuiConsoleHandleScroll(hWnd, msg, wParam);
+ Result = GuiConsoleHandleScroll(hWnd, msg, wParam, GuiData);
break;
case WM_SIZE:
GuiConsoleResize(hWnd, wParam, lParam);