C ++允许从剪贴板粘贴到编辑框 [英] C++ allow paste from clipboard to edit box

查看:87
本文介绍了C ++允许从剪贴板粘贴到编辑框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我是C ++的初学者,我正在寻求帮助。我有一个特定选择的代码。我想通过CTRL + V允许粘贴到此框。现在我只能通过鼠标右键单击选择并选择粘贴。如何在此编辑框中粘贴



这里是图片网址: obrazek - imgbb。 com [ ^ ]



谢谢你的帮助



我尝试过:



我尝试使用资源黑客编辑dll文件

解决方案

Quote:

是的,这是现有的申请。我没有源代码。

然后你所能做的就是联系应用程序的作者。



因为通过上下文菜单粘贴工作,它可能是一个错误(我无法通过意图看到任何理由)。



如果您无法通过作者修复它:

您是否尝试过Shift + Insert?



如果您只想使用键盘,您也可以尝试使用上下文菜单键(许多键盘上右侧Ctrl键的左侧),并使用光标键导航到粘贴选项。 / blockquote>

你必须写一些像Ctrl + V这样的动作处理程序,而不是使用剪贴板API 。你会发现一些臃肿的示例代码,所以要注意更有趣的EdityCopy()和EditPaste()代码。


Hello Im beginer in C++ a Im looking help. I have a this code for specific choice. I would like to allow paste to this box via CTRL+V. Now I have only choice across right click mouse button and select paste. How can I allow paste on this edit box

here is image url : obrazek — imgbb.com[^]

thank you for help

What I have tried:

I try to edit dll file using resource hacker

解决方案

Quote:

yes this is existing application. I dont have a source code.

Then all you can do is contacting the author of the application.

Because pasting by context menu works, it is probably a bug (I can't see any reason for doing such by intention).

If you can't get it fixed by the author:
Did you tried Shift+Insert?

If you want to use the keyboard only you can also try to use the context menu key (left of the right Ctrl key on many keyboards) and navigate to the paste option using the cursor keys.


You must write some action handler like for "Ctrl+V" and than use the Clipboard API. You find some bloated example code, so pay attention to the more interesting EdityCopy() and EditPaste() code.


这篇关于C ++允许从剪贴板粘贴到编辑框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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