From 536edd7bfcd4c32087ac4558bbe20ed250df0184 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Tue, 17 Jun 2008 21:18:13 -0400 Subject: [PATCH] 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. --- programs/wordpad/wordpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 92255fd6d22..04fc8785a4d 100644 --- a/programs/wordpad/wordpad.c +++ b/programs/wordpad/wordpad.c @@ -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)