How to disable copy/paste commands in the Windows edit control context menu?

前端 未结 4 1955
陌清茗
陌清茗 2020-12-16 05:38

How can I disable those 3 standard cut/copy/paste commands in the context menu of the native Windows OS edit control?

I also need to disable the equivalent

4条回答
  •  孤街浪徒
    2020-12-16 06:27

    You could leave the options visible but lock the clipboard from usage.
    If this solution suits you all you need to do is make a program that opens the clipboard by calling OpenClipboard(NULL). In order to release the clipboard call CloseClipboard().

提交回复
热议问题