richedit: Fixed the selection bar width.
This commit is contained in:
parent
db95d69f99
commit
2eec4f03ed
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue