Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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?
Posted
Comments
Sergey Alexandrovich Kryukov 9-Mar-12 22:44pm    
Why? Want to prevent the RTF data and graphics to be used by the user? This is naive, anyway.
--SA
jiazhiqiang 9-Mar-12 22:46pm    
I just show them to the user.
Don't want user to select the RTF data.

1 solution

jiazhiqiang wrote:
I just show them to the user. Don't want user to select the RTF data.
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
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900