Module: wine Branch: master Commit: 536edd7bfcd4c32087ac4558bbe20ed250df0184 URL: http://source.winehq.org/git/wine.git/?a=commit;h=536edd7bfcd4c32087ac4558bb...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Tue Jun 17 21:18:13 2008 -0400
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 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c index 92255fd..04fc878 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)