riched20: Enable retrieving data through the ole interface.

This commit is contained in:
Kevin Koltzau 2006-02-22 23:09:11 -05:00 committed by Alexandre Julliard
parent d52ae24b5e
commit 33af76f991
1 changed files with 10 additions and 2 deletions

View File

@ -138,8 +138,16 @@ IRichEditOle_fnGetClipboardData(IRichEditOle *me, CHARRANGE *lpchrg,
DWORD reco, LPDATAOBJECT *lplpdataobj) DWORD reco, LPDATAOBJECT *lplpdataobj)
{ {
IRichEditOleImpl *This = (IRichEditOleImpl *)me; IRichEditOleImpl *This = (IRichEditOleImpl *)me;
FIXME("stub %p\n",This); CHARRANGE tmpchrg;
return E_NOTIMPL;
TRACE("(%p,%p,%ld)\n",This, lpchrg, reco);
if(!lplpdataobj)
return E_INVALIDARG;
if(!lpchrg) {
ME_GetSelection(This->editor, (int*)&tmpchrg.cpMin, (int*)&tmpchrg.cpMax);
lpchrg = &tmpchrg;
}
return ME_GetDataObject(This->editor, lpchrg, lplpdataobj);
} }
static LONG WINAPI IRichEditOle_fnGetLinkCount(IRichEditOle *me) static LONG WINAPI IRichEditOle_fnGetLinkCount(IRichEditOle *me)