本文介绍了Winapi EDITTEXT无法粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在cpp项目中,我在资源文件中有一个EDITTEXT,我想允许用户在其中粘贴一些文本。我可以使用右键单击,但不能使用'ctrl + v'快捷键。

In a cpp project, I have an EDITTEXT in a resource file and I would like to allow user paste some text in it. I can paste using right click but not with the 'ctrl+v' shortcut.

EDITTEXT        IDC_EDITTAN, 90, 46, 80, 12, ES_AUTOHSCROLL

似乎没有编辑控制样式或丰富的编辑控制样式允许这样=https://msdn.microsoft.com/en-us/library/windows/desktop/bb774367(v=vs.85).aspx =nofollow> https://msdn.microsoft.com/en -us / library / windows / desktop / bb774367(v = vs.85).aspx )。

It seems that no edit control styles or rich edit control styles allow this (https://msdn.microsoft.com/en-us/library/windows/desktop/bb774367(v=vs.85).aspx).

我必须回调或使用其他控制器?

I have to make a callback or use an other controller ?

感谢

推荐答案

在资源视图中检查您的加速器表,或 c> ACCELERATORS ,查看是否有资源文件。删除它应该可以解决问题。

Check your accelerator table in resource view, or ACCELERATORS in the resource file to see if one is in there. Removing it should solve the problem.

这篇关于Winapi EDITTEXT无法粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 01:17
查看更多