From 2e0d8cfc768e9b670095728c6cc0d5f006d41746 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 20 Aug 2002 00:24:17 +0000 Subject: [PATCH] Don't set EN_CHANGE at creation time. --- controls/edit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/controls/edit.c b/controls/edit.c index 816af520d8e..158ea83c42c 100644 --- a/controls/edit.c +++ b/controls/edit.c @@ -3875,8 +3875,12 @@ static LRESULT EDIT_WM_Create(HWND hwnd, EDITSTATE *es, LPCWSTR name) * update caret */ es->selection_start = es->selection_end = 0; - /* send the notification after the selection start and end are set */ - EDIT_NOTIFY_PARENT(hwnd, es, EN_CHANGE, "EN_CHANGE"); + /* Adobe Photoshop does NOT like this. and MSDN says that EN_CHANGE + * Messages are only to be sent when the USER does something to + * change the contents. So I am removing this EN_CHANGE + * + * EDIT_NOTIFY_PARENT(hwnd, es, EN_CHANGE, "EN_CHANGE"); + */ EDIT_EM_ScrollCaret(hwnd, es); } /* force scroll info update */ -- 2.11.4.GIT