once again i'm only guessing, so beware... when i look at the OLEUICONVERT-struct, i see these two values (the two last ones):
UINT cClsidExclude LPCLSID lpClsidExclude so to me, it looks like "lpClsidExclude" is an array of CLSID (or better yet a pointer to the first entry in an array of CLSID) and "cClsidExclude" is the number of entries in that array. and since the type of the parameter is LPCLSID, the entries are not strings (like filenames in OPENFILENAME) but rather of type CLSID (the thing you get from apis like "CLSIDFromString" or "CLSIDFromProgID"). and there are no nulls between or at the end... hth, franz -----Ursprüngliche Nachricht----- Von: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Im Auftrag von John Whattam Gesendet: Montag, 15. Mai 2006 00:05 An: [email protected] Betreff: Re: [ADVANCED-DOTNET] What is wFormat member of OleUIConvert Structure... 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
