[TRY 4] [PATCH] user32: horizontal and vertical scrolling of selection in edit control
Henry Kroll III
henry at comptune.com
Mon Mar 29 04:11:44 CDT 2010
Removed FIXME in EDIT_WM_Timer and used EDIT_EM_LineScroll as suggested.
-------------- next part --------------
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 9898bc4..5c7d820 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -3796,17 +3796,13 @@ static LRESULT EDIT_WM_SysKeyDown(EDITSTATE *es, INT key, DWORD key_data)
*/
static void EDIT_WM_Timer(EDITSTATE *es)
{
- if (es->region_posx < 0) {
- EDIT_MoveBackward(es, TRUE);
- } else if (es->region_posx > 0) {
- EDIT_MoveForward(es, TRUE);
- }
-/*
- * FIXME: gotta do some vertical scrolling here, like
- * EDIT_EM_LineScroll(hwnd, 0, 1);
- */
+ if (es->region_posx < 0)EDIT_EM_LineScroll(es,-10,0);
+ else if (es->region_posx > 0)EDIT_EM_LineScroll(es,10,0);
+ if (es->region_posy < 0)EDIT_EM_LineScroll(es,0,-1);
+ else if (es->region_posy > 0)EDIT_EM_LineScroll(es,0,1);
}
+
/*********************************************************************
*
* WM_HSCROLL
More information about the wine-patches
mailing list