如何让RichEdit控件无法获得输入符号! [英] How I can let RichEdit control cann't get the input caret!

查看:83
本文介绍了如何让RichEdit控件无法获得输入符号!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在RichEdit控件中输出了一些ole位图对象和文本,并将其设置为只读.
当我左键单击它时,它可以获取输入插入符号,也可以选择一个ole位图,我只希望它可以获取焦点(然后我可以垂直滚动它),但是无法获取输入插入符号以确保用户可以" t选择文本并在其中选择位图.
你有一些方法吗?

I output some ole bitmap objects and text in a RichEdit control and set it to read-only.
when I Left-click on it,it can get input caret and may also select one ole bitmap,I just want it can get focus(then I can vertical-scroll it)but cann''t get the input caret to ensure user cann''t select the text and ole bitmap whthin it.
do you have some methods?

推荐答案

jiazhiqiang写道:
jiazhiqiang wrote:

我只给他们看给用户.不想用户选择RTF数据.

I just show them to the user. Don''t want user to select the RTF data.

不想要?在这种情况下,我会更加关注用户的需求.

如果用户选择它,那没有错.太糟糕了,不允许绝对选择和复制所有内容.与始终可用的Web应用程序相比,缺少此类功能是桌面应用程序的罕见缺点之一.

—SA

You don''t want? In this case, I would be a bit more concerned with what users want.

There is nothing wrong if the user selects it. It''s too bad that it is not allowed to select and copy absolutely everything. The lack of such feature is one of the rare drawbacks of desktop applications compared to Web applications where it''s always possible.

—SA


这篇关于如何让RichEdit控件无法获得输入符号!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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