Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
as the title says, i'm simply trying to make it to where there is no blinking cursor at all with an edit or richedit control so that, coupled with ES_READONLY, all it does is act as a printout that can select text, like the text you would see on a webpage. uneditable but selectable. I found the HideCaret() function in the msdn, and it returns successful, but the caret is still there. any assistance here?
Posted

1 solution

Just one note: If you want to hide a caret from a edit control, it looks to me you're going to abuse this control. It is designed to edit texts, which should be done with caret. If you need static non-editable text, use static text or label controls.

—SA
 
Share this answer
 
Comments
FatalCatharsis 5-Sep-11 15:49pm    
wow, i've spent so much time trying to manipulate edit controls to do what i wanted, I turn around, and theres a control i missed that does exactly what i wanted it to. sigh* once again, thanks Kryukov for putting up with my ignorance once more.
Sergey Alexandrovich Kryukov 5-Sep-11 20:36pm    
You're very welcome; I'm glad it worked out for you.
Good luck, call again.
--SA
Wendelius 5-Sep-11 17:05pm    
Good thinking. 5
Sergey Alexandrovich Kryukov 5-Sep-11 20:35pm    
Thank you, Mika.
--SA

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