Re: Ole Clipboard or Drag drop of Metafile image
"Angus Comber" <angus-v2qo0/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <401314777-1271318922-cardhu_decombobulator_blackberry.rim.net-1153067803-@bda2172.bisx.produk.on.blackberry> |
In this situation I would make a MFC example and just step thru the code. You have the MFC sources do you not? -----Original Message----- From: "arasakumaran" <arasakumaran-/[email protected]> Date: Thu, 15 Apr 2010 02:44:57 To: <[email protected]> Subject: [wtl] Ole Clipboard or Drag drop of Metafile image 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. [Non-text portions of this message have been removed] ------------------------------------ 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/