Ole Clipboard or Drag drop of Metafile image

"arasakumaran" <arasakumaran-/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
I am porting some code from MFC.  I need to place a metafile ( or enhanced metafile) into the data-object being used for the drag/drop. There are IDataObject implementation samples to do this that work fine (one from Viksoe, one in Codeproject from Dunn etc. ) for text, bitmap etc.  But I don't know quite how to do this for CF_ENHMETAFILE. 

Also, MFC uses 'm_hAttributeDC' to help in some of the text/drawing functions while drawing in metafileDC  - how would I do the equivalent in WTL, the drawing code uses GetTextExtentEx, which fails in the metafile DC.

Thanks.



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.