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.
This commit is contained in:
Dylan Smith 2008-06-17 21:18:13 -04:00 committed by Alexandre Julliard
parent 70cf762d31
commit 536edd7bfc
1 changed files with 2 additions and 1 deletions

View File

@ -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)