>From 929031affa91acd17bc8e3e6748539566d6f190e Mon Sep 17 00:00:00 2001 From: Sergey Khodych Date: Sun, 4 Oct 2009 21:41:48 +0300 Subject: riched20: Enable the dialog mode after receiving WM_GETDLGCODE message. --- dlls/riched20/editor.c | 3 +++ dlls/riched20/editstr.h | 1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 11d4925..9f56761 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -2665,6 +2665,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10) ed->mode |= (props & TXTBIT_RICHTEXT) ? TM_RICHTEXT : TM_PLAINTEXT; ed->AutoURLDetect_bEnable = FALSE; ed->bHaveFocus = FALSE; + ed->bDialogMode = FALSE; ed->bMouseCaptured = FALSE; for (i=0; ibDialogMode = TRUE; if (editor->styleFlags & ES_MULTILINE) code |= DLGC_WANTMESSAGE; return code; diff --git a/dlls/riched20/editstr.h b/dlls/riched20/editstr.h index 115662c..9b8d645 100644 --- a/dlls/riched20/editstr.h +++ b/dlls/riched20/editstr.h @@ -370,6 +370,7 @@ typedef struct tagME_TextEditor BOOL AutoURLDetect_bEnable; WCHAR cPasswordMask; BOOL bHaveFocus; + BOOL bDialogMode; /* Indicates that we are inside a dialog window */ /*for IME */ int imeStartIndex; DWORD selofs; /* The size of the selection bar on the left side of control */ -- 1.5.3.3