Thanks Strele,
I think you're right because 8 corresponds to a DIB clipboard format and
the 1 in the Word entry corresponds to a TXT clipboard format. Also, I
overlooked the Convert member of the IRichEditOle interface - I was too
busy looking at the various OLE/COM interfaces and functions and forgot
there are two other OLE related interfaces on the richtext control itself.
Anyway, I've called the Convert function after displaying the Convert
dialog and lo and behold, the bitmap is converted from BMP to Picture(DIB)
and when I re-open the converted object in the Convert dialog again it
correctly reports the latest format as being Picture(DIB). Now I need to
implement functionality to exclude the current format from the list of
available formats - ie if the format is currently BMP then BMP should not
be listed. The OLEUICONVERT struuct has a pointer to a list of CLSID's to
exclude - there is little information on how this list is implemented but
from the OPENFILENAME struct, I assume it is a list of CLSIDS each
separated by NULLs and with a double NULL at the end. If anyone has
additional information on this, could they please let me know.

Regards and thanks again for all your help,
John Whattam.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to