Because of the recent copy of the picture and text, but in view of the information on the Internet is not very clear, so I would like to summarize what I know and my own approach to consider.
Windows platform, clipboard support several formats, this I have not delve into other formats, temporarily only for Cf_text, and Cf_bitmap and so a little understanding.
At that time a little curious about the QQ text-to-picture mix is how to do, but not too much information to the hint, perhaps everyone's approach is to customize a format. Because I can't find
To some code to mention my custom format, exactly what is the matter, so my current idea is only to be elected in the content of the picture, will use </img>
Such tags put the path of the picture into the Cf_dsptext. But I do not think this is a good idea, because if the text itself contains this format?
Is it possible to use the Clipboard to support multiple formats while setting the features to do some hands and feet?
There is a problem, why word graphics and text can not be pasted directly to QQ? Is it supposed to be a custom format for word? (or are there other implementations?) )
Word can be copied directly to the drawing tool in the picture's mode. If the first hypothesis is true (Word uses a custom format), then the
Drawing tools, know the definition of the custom format method, and then explained that the regeneration into a picture of a combination of graphics on the drawing tool display.
Although I do not know this idea is right, but at least guess is reasonable, haha. But at the same time I do not have to think more, to prove that QQ can not get Word copy method,
Otherwise you should be able to paste into the input box. (Spit slot June A: Don't be silly, others just disdain to paste word text. Spit Groove June B: Your version is too low, hurriedly update your QQ)
For the browser seems to be able to study a bit, because QQ can be pasted from the browser text.
(not sure whether all browsers can, seemingly tested chrome is OK, there are FF single copy picture, get the image URL)
After all, the Windows browser will also use the Windows clipboard Bar, so setclipboarddata This API is also used.
(Spit slot June: Chrome seems to have the source of it, you why not next to see if there is no realization of this aspect, what nonsense, you are not professional, you roll)
It turns out that when pasting data from Chrome and FF, GetClipboardData (CF_TEXT) actually gets the data.
But ..... These figures don't seem to have any picture-related stuff. (I thought it was too simple, and I stumbled across a bit of a chrome drag-and-drop to find a tag)
Then I was very useless to see a bunch of browser-compatible clipboard articles, found that the original attention to this aspect of the people are still many ah. Share a few really good articles
(Burst material June: Actually you feel that someone writes very professional appearance, but oneself also did not have personally tried, put out, can be responsible point? Me: Anyway my essay on my own See, you blew me up baa .... )
But still did not find what is very useful to me clue, next, I intend to put all the format tested again, see if it is possible to use the browser paste format to what special format
(Spit groove June: You ya, call you under the code you do not, you have to guess, you do not professional you roll)
By the way, I think some of the articles I thought were well written:
1. Discussion from the known Ctrl + V: http://www.zhihu.com/question/20893119
2. Study of copy and paste from multiple browsers: https://ruby-china.org/topics/17266
3. It is said that the previous browser was copied and pasted depending on flash, this is the api:http://www.cnblogs.com/peunzhang/p/3324727.html of the jquery zeroclipboard.
4. It seems that you can use this method now: http://blog.csdn.net/lee_magnum/article/details/17761441
And that's none of my business. I want to study the Windows aspect of AH ....
Hey, temporarily on how to get a copy of the browser and graphics still need to continue to study, has anyone pointed it? If there's any progress, update it.
About Shear Plates