Properly handle WM_PASTE in subclass procedure

◇◆丶佛笑我妖孽 提交于 2019-12-06 16:47:25

The code seems plausible, down to the action taken. Bit clunky, but that's Windows API. There may be better ways, but this should work.

One mistake: if the text is OK, you should call DefSubclassProc, not the default window procedure.

If the text is not OK you could consider emptying the clipboard. There is not enough here about your other requirements to talk about that.

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