Dylan Smith : richedit: Fixed the selection bar width.
Alexandre Julliard
julliard at winehq.org
Mon Jul 7 09:19:05 CDT 2008
Module: wine
Branch: master
Commit: 2eec4f03ed58ff607cf0bfbf30358fd7be55e9d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2eec4f03ed58ff607cf0bfbf30358fd7be55e9d0
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Fri Jul 4 16:02:47 2008 -0400
richedit: Fixed the selection bar width.
---
dlls/riched20/editor.c | 4 ++--
dlls/riched20/editstr.h | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index dedc59e..6ff1385 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1697,7 +1697,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
ME_CheckCharOffsets(ed);
if (GetWindowLongW(hWnd, GWL_STYLE) & ES_SELECTIONBAR)
- ed->selofs = 16;
+ ed->selofs = SELECTIONBAR_WIDTH;
else
ed->selofs = 0;
ed->linesel = 0;
@@ -2111,7 +2111,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
if (settings & ECO_AUTOWORDSELECTION)
FIXME("ECO_AUTOWORDSELECTION not implemented yet!\n");
if (settings & ECO_SELECTIONBAR)
- editor->selofs = 16;
+ editor->selofs = SELECTIONBAR_WIDTH;
else
editor->selofs = 0;
ME_WrapMarkedParagraphs(editor);
diff --git a/dlls/riched20/editstr.h b/dlls/riched20/editstr.h
index d54edbf..cab52ad 100644
--- a/dlls/riched20/editstr.h
+++ b/dlls/riched20/editstr.h
@@ -90,6 +90,8 @@ typedef enum {
diUndoPotentialEndTransaction, /* 19 - allows grouping typed chars for undo */
} ME_DIType;
+#define SELECTIONBAR_WIDTH 9
+
/******************************** run flags *************************/
#define MERF_STYLEFLAGS 0x0FFF
/* run contains non-text content, which has its own rules for wrapping, sizing etc */
More information about the wine-cvs
mailing list