M
manjel
Unregistered / Unconfirmed
GUEST, unregistred user!
Function TOLEEdit.PicturetoStream(TmpStream:TmemoryStream):Boolean;
var ReObject:TReObject;
FDataObject:IDataObject;
begin
result:=False;
try
ReObject.cbStruct:= sizeof(REObject);
if FRichEditOle.GetObject(integer(REO_IOB_SELECTION), ReObject, REO_GETOBJ_POLEOBJ) = S_OK then
begin
ReObject.oleobj.QueryInterface(IID_IUnknown,FDataObject);
if assigned(FDataObject) then
begin
result:=True;
end;
end;
except
end;
end;
var ReObject:TReObject;
FDataObject:IDataObject;
begin
result:=False;
try
ReObject.cbStruct:= sizeof(REObject);
if FRichEditOle.GetObject(integer(REO_IOB_SELECTION), ReObject, REO_GETOBJ_POLEOBJ) = S_OK then
begin
ReObject.oleobj.QueryInterface(IID_IUnknown,FDataObject);
if assigned(FDataObject) then
begin
result:=True;
end;
end;
except
end;
end;