riched20: Enable the dialog mode after receiving WM_GETDLGCODE message.
This commit is contained in:
parent
205df00c64
commit
851c33ddd9
|
@ -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; i<HFONT_CACHE_SIZE; i++)
|
||||
{
|
||||
|
@ -3008,6 +3009,8 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
|
|||
case WM_GETDLGCODE:
|
||||
{
|
||||
UINT code = DLGC_WANTCHARS|DLGC_WANTTAB|DLGC_WANTARROWS|DLGC_HASSETSEL;
|
||||
if (lParam)
|
||||
editor->bDialogMode = TRUE;
|
||||
if (editor->styleFlags & ES_MULTILINE)
|
||||
code |= DLGC_WANTMESSAGE;
|
||||
return code;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue