如何捕获编辑控件的上下文菜单粘贴命令? [英] How to capture edit control's context menu paste command?

查看:53
本文介绍了如何捕获编辑控件的上下文菜单粘贴命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我有一个带编辑控件的对话框。编辑控件不是子类。在对话框类中如何捕获编辑控件的上下文菜单粘贴命令。

 I have a dialog with edit control. The edit control is not subclassed. In the dialog class how to capture edit control's context menu paste command.

在pretranslateMessage中,我尝试捕获WM_PASTE和ID_EDIT_PASTE消息以进行编辑控制,但这些消息未在pretranslateMessage中捕获。

In pretranslateMessage, I tried to capture WM_PASTE and ID_EDIT_PASTE messages for edit control, but these messages are not getting captured in pretranslateMessage.

请有人帮助我。

推荐答案

是否可以在没有子类化的情况下进行捕获?

Is it possible to capture without subclassing?





这篇关于如何捕获编辑控件的上下文菜单粘贴命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆