Commit 2eec4f03 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Fixed the selection bar width.

parent db95d69f
...@@ -1697,7 +1697,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) { ...@@ -1697,7 +1697,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
ME_CheckCharOffsets(ed); ME_CheckCharOffsets(ed);
if (GetWindowLongW(hWnd, GWL_STYLE) & ES_SELECTIONBAR) if (GetWindowLongW(hWnd, GWL_STYLE) & ES_SELECTIONBAR)
ed->selofs = 16; ed->selofs = SELECTIONBAR_WIDTH;
else else
ed->selofs = 0; ed->selofs = 0;
ed->linesel = 0; ed->linesel = 0;
...@@ -2111,7 +2111,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam, ...@@ -2111,7 +2111,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
if (settings & ECO_AUTOWORDSELECTION) if (settings & ECO_AUTOWORDSELECTION)
FIXME("ECO_AUTOWORDSELECTION not implemented yet!\n"); FIXME("ECO_AUTOWORDSELECTION not implemented yet!\n");
if (settings & ECO_SELECTIONBAR) if (settings & ECO_SELECTIONBAR)
editor->selofs = 16; editor->selofs = SELECTIONBAR_WIDTH;
else else
editor->selofs = 0; editor->selofs = 0;
ME_WrapMarkedParagraphs(editor); ME_WrapMarkedParagraphs(editor);
......
...@@ -90,6 +90,8 @@ typedef enum { ...@@ -90,6 +90,8 @@ typedef enum {
diUndoPotentialEndTransaction, /* 19 - allows grouping typed chars for undo */ diUndoPotentialEndTransaction, /* 19 - allows grouping typed chars for undo */
} ME_DIType; } ME_DIType;
#define SELECTIONBAR_WIDTH 9
/******************************** run flags *************************/ /******************************** run flags *************************/
#define MERF_STYLEFLAGS 0x0FFF #define MERF_STYLEFLAGS 0x0FFF
/* run contains non-text content, which has its own rules for wrapping, sizing etc */ /* run contains non-text content, which has its own rules for wrapping, sizing etc */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment