I do indeed receive the EN_OBJECTPOSITIONS notification and I return the #
of objects and a pointer to an array of ULONGs in the OBJECTPOSITIONS
structure pointed to by LParam.
Am I mistaken in believing that the RTF control will then use my
implementation of the IRichEditOleCallback interface set in #2 to get the
actual IStorage data? - Nothing really happens: I get no callbacks and the
loaded RTF has the "\objattph" tag replaced with "\par" rather than the
actual data that I am supposed to supply.
Any ideas? I am really puzzled...
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
While I have not tried your exact RTF flavor, I can tell you, though, that
the IRichEditOleCallback does call your code back. In our project we use
a lot of embedded "{\pict\wmetafile8\.." pictures in the RTFs, and for them
to be displayed properly when using EM_STREAMIN, I have to return
a freshly initialized IStorage pointer to the richedit control when it calls
the GetNewStorage() method. I just return E_NOTIMPL in the other
9 methods, except for QueryInsertObject(), where I return S_OK.
Rgrds Henry
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Henry Skoglund" <drt...@tungware.com> wrote in message
news:el8WMUCI...@tk2msftngp13.phx.gbl...