diff --git a/dll/win32/riched20/editor.c b/dll/win32/riched20/editor.c index a7794ab7901..0f7a9e280a2 100644 --- a/dll/win32/riched20/editor.c +++ b/dll/win32/riched20/editor.c @@ -2934,6 +2934,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10) { ME_TextEditor *ed = heap_alloc(sizeof(*ed)); int i; + DWORD flags; LONG selbarwidth; HRESULT hr; @@ -2952,6 +2953,13 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10) ed->bEmulateVersion10 = bEmulateVersion10; ed->in_place_active = FALSE; ed->total_rows = 0; + flags = TXTBIT_RICHTEXT | TXTBIT_MULTILINE | TXTBIT_READONLY | + TXTBIT_USEPASSWORD | TXTBIT_HIDESELECTION | TXTBIT_SAVESELECTION | + TXTBIT_AUTOWORDSEL | TXTBIT_VERTICAL | TXTBIT_WORDWRAP | TXTBIT_ALLOWBEEP | + TXTBIT_DISABLEDRAG; + DPRINTF("(riched20/editor.c:%d) iface %p\n", __LINE__, ed->texthost); + DPRINTF("(riched20/editor.c:%d) mask 0x%x\n", __LINE__, flags); + DPRINTF("(riched20/editor.c:%d) bits %p\n", __LINE__, &ed->props); ITextHost_TxGetPropertyBits( ed->texthost, TXTBIT_RICHTEXT | TXTBIT_MULTILINE | TXTBIT_READONLY | TXTBIT_USEPASSWORD | TXTBIT_HIDESELECTION | TXTBIT_SAVESELECTION | TXTBIT_AUTOWORDSEL | TXTBIT_VERTICAL | TXTBIT_WORDWRAP | TXTBIT_ALLOWBEEP | diff --git a/dll/win32/riched20/txthost.c b/dll/win32/riched20/txthost.c index cd3a2457ec4..cd8cac8ca51 100644 --- a/dll/win32/riched20/txthost.c +++ b/dll/win32/riched20/txthost.c @@ -457,6 +457,9 @@ DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_OnTxParaFormatChange( ITextHost DEFINE_THISCALL_WRAPPER(ITextHostImpl_TxGetPropertyBits,12) DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPropertyBits( ITextHost2 *iface, DWORD mask, DWORD *bits ) { + DPRINTF("(riched20/txthost.c:%d) iface %p\n", __LINE__, *iface); + DPRINTF("(riched20/txthost.c:%d) mask 0x%x\n", __LINE__, mask); + DPRINTF("(riched20/txthost.c:%d) bits %p\n", __LINE__, *bits); struct host *host = impl_from_ITextHost( iface ); *bits = host->props & mask;