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:
parent
46fef3daa1
commit
bbf34a4ab1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue