Delphi:在备忘录/编辑中禁用撤消
我已经为tmemo
/tedit
实施了一个undomanager >在上下文菜单中撤消)是这些组件,而是执行我的do undo/redo命令。
我试图捕获wm_undo
,但是 ctrl + z 似乎发送了另一个消息。另外,我不知道收到消息后如何处理(例如,WM_PASTE
我们可以清除剪贴板)
I have implemented an UndoManager for a TMemo
/TEdit
and now I want to disable default Undo behavior (Ctrl+Z and Undo in context menu) is these components and instead do my undo/redo commands.
I tried to catch WM_UNDO
, but Ctrl+Z seems sending another message. Also I don't know how to handle it after message received (for example for WM_PASTE
we could clear clipboard)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论