如何在cricheditview中拖放? [英] How to drag and drop in cricheditview ?
本文介绍了如何在cricheditview中拖放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在这个类中创建CRichEditView时,我遇到了一个问题,如果我输入一个字符串,它就不能拖放,因为我不会。
我尝试了什么:
I am facing a problem while i create CRichEditView in this class there are if i enter one string it can not drag and drop as i wont.
What I have tried:
I am facing a problem while i create CRichEditView in this class there are if i enter one string it can not drag and drop as i wont.
推荐答案
参见 CRichEditView :: GetClipboardData 。
作为解决方案发布,因为发布评论实际上并不适用于某些问题,包括此问题。
ACRichEditView
嵌入一个内置的CRichEditCtrl
默认情况下启用拖放功能支持。
但是拖累和支持drop与输入字符串无关,而是单击并按住所选项目(带编辑控件的文本范围)。
另外CRichEditViews
通常不是在这个类中创建的,但是你将派生类作为MFC文档视图层次结构的一部分(由项目向导预先创建)。
请使用绿色的改善问题链接来编辑您的问题,并分别添加您想要做的事情的详细说明。
Posted as solution because posting comments is actually not working on some questions including this one.
ACRichEditView
embeds aCRichEditCtrl
which has built-in and by default enabled drag & drop support.
But drag & drop is not related to entering strings but clicking and holding on selected items (text ranges with edit controls).
AlsoCRichEditViews
are usually not "created in this class" but you will have derived classes as part of the MFC document view hierarchy (pre-created by the project wizard).
Please use the green "Improve question" link to edit your question and add a detailed description of what you want to do respectively what is not working as expected.
这篇关于如何在cricheditview中拖放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文