WM_DRAWCLIPBOARD multiple messages

折月煮酒 提交于 2020-01-06 05:59:32

问题


I'm working on a small clipboard manager which should remember recent copied text. I'm using Windows system messages for being notified when something has been copied to clipboard by WM_DRAWCLIPBOARD. The problem is some of the applications I use send multiple WM_DRAWCLIPBOARD messages to my application, for instance when I copy something in Chrome web browser it's only one message, miranda's chat window sends 3 of the same messages with the same text to the clipboard viewer's chain. How to avoid this ?


回答1:


Some applications put different versions of the same text on the clipboard (RTF,Unicode,ASCII) Could this be the reason?



来源:https://stackoverflow.com/questions/1214524/wm-drawclipboard-multiple-messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!