riched20: Use the implementation of EM_PASTESPECIAL for EM_CANPASTE.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-08-21 12:31:50 +01:00 committed by Alexandre Julliard
parent 46fef3daa1
commit bbf34a4ab1
1 changed files with 1 additions and 8 deletions

View File

@ -4039,14 +4039,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
return 1; return 1;
} }
case EM_CANPASTE: case EM_CANPASTE:
{ return paste_special( editor, 0, NULL, TRUE );
UINT nRTFFormat = RegisterClipboardFormatA("Rich Text Format");
if (IsClipboardFormatAvailable(nRTFFormat))
return TRUE;
if (IsClipboardFormatAvailable(CF_UNICODETEXT))
return TRUE;
return FALSE;
}
case WM_PASTE: case WM_PASTE:
case WM_MBUTTONDOWN: case WM_MBUTTONDOWN:
wParam = 0; wParam = 0;