Module: wine Branch: master Commit: f28988684e02f5e3992e83aa942a491352e67c71 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f28988684e02f5e3992e83aa94...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Tue Feb 24 02:38:57 2009 -0500
richedit: Return FALSE for EM_LINESCROLL with single line control.
---
dlls/riched20/editor.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index e73679e..8af973c 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -3375,8 +3375,10 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam, } case EM_LINESCROLL: { + if (!(editor->styleFlags & ES_MULTILINE)) + return FALSE; ME_ScrollDown(editor, lParam * 8); /* FIXME follow the original */ - return TRUE; /* Should return false if a single line richedit control */ + return TRUE; } case WM_CLEAR: {