Commit f42e151a authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Updated internal style flags on EM_SHOWSCROLLBAR.

The internal style flags are used to determine whether to show or hide the scrollbar when ME_UpdateScrollBar is called. EM_SHOWSCROLLBAR seems to update this state in native richedit controls.
parent a051a231
......@@ -3183,6 +3183,28 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
}
case EM_SHOWSCROLLBAR:
{
DWORD flags;
switch (wParam)
{
case SB_HORZ:
flags = WS_HSCROLL;
break;
case SB_VERT:
flags = WS_VSCROLL;
break;
case SB_BOTH:
flags = WS_HSCROLL|WS_VSCROLL;
break;
default:
return 0;
}
if (lParam)
editor->styleFlags |= flags;
else
editor->styleFlags &= flags;
ITextHost_TxShowScrollBar(editor->texthost, wParam, lParam);
return 0;
}
......
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