Commit 536edd7b authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

wordpad: Added style to the richedit control to not hide selection.

When run with the native richedit control the selection will be hidden when focus is lost without the ES_NOHIDESEL style applied to the richedit control. This can be annoying in native windows when focus is on a combobox in the toolbar, because it won't show what text will be changed. This patch adds the ES_NOHIDESEL style to be consistent with native wordpad.
parent 70cf762d
......@@ -1682,7 +1682,8 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
}
hEditorWnd = CreateWindowExW(WS_EX_CLIENTEDGE, wszRichEditClass, NULL,
WS_CHILD|WS_VISIBLE|ECO_SELECTIONBAR|ES_MULTILINE|ES_AUTOVSCROLL|ES_WANTRETURN|WS_VSCROLL,
WS_CHILD|WS_VISIBLE|ES_SELECTIONBAR|ES_MULTILINE|ES_AUTOVSCROLL
|ES_WANTRETURN|WS_VSCROLL|ES_NOHIDESEL,
0, 0, 1000, 100, hWnd, (HMENU)IDC_EDITOR, hInstance, NULL);
if (!hEditorWnd)
......
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