WM_DRAWCLIPBOARD多条消息 [英] WM_DRAWCLIPBOARD multiple messages
问题描述
我正在使用一个小型剪贴板管理器,它应该记住最近复制的文本.当WM_DRAWCLIPBOARD将某些内容复制到剪贴板时,我正在使用Windows系统消息进行通知.问题是我使用的某些应用程序向我的应用程序发送了多个WM_DRAWCLIPBOARD消息,例如,当我在Chrome Web浏览器中复制某些消息时,它只是一条消息,米兰达的聊天窗口会将3条相同的消息以相同的文本发送到剪贴板查看器链.如何避免这种情况?
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 ?
推荐答案
某些应用程序将同一文本的不同版本放在剪贴板上(RTF,Unicode,ASCII),这可能是原因吗?
Some applications put different versions of the same text on the clipboard (RTF,Unicode,ASCII) Could this be the reason?
这篇关于WM_DRAWCLIPBOARD多条消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!