crtracy
May 2nd, 1999, 06:14 AM
How do I hide the carot in an edit control? Specifically a CRichEditCtrl derived class?
I'm using a CRichEditCtrl as a log window (similar to the DevStudio "Debug" Output window). Naturally the Control is read-only (ES_READONLY). I like how the user can use the mouse to Copy/Paste text out, but is it possible to get rid of the blinking Carot?
I've tried creating it disabled (WS_DISABLE) but then the user can not use the mouse to select text either.
I've tried HideCarot() to no avail (many times in many places).
This isn't a high priority, nor am I sure that I was going to keep it disabled (the user can't see where the carot is to select text with shift+arrow keys), but it bugs me that I can't do it.
BTW, Great Site. I was going to submit this as a simple log window control when it stablizes.
Chris Tracy
Research Programmer and Student
University of IL at Urbana/Champaign
I'm using a CRichEditCtrl as a log window (similar to the DevStudio "Debug" Output window). Naturally the Control is read-only (ES_READONLY). I like how the user can use the mouse to Copy/Paste text out, but is it possible to get rid of the blinking Carot?
I've tried creating it disabled (WS_DISABLE) but then the user can not use the mouse to select text either.
I've tried HideCarot() to no avail (many times in many places).
This isn't a high priority, nor am I sure that I was going to keep it disabled (the user can't see where the carot is to select text with shift+arrow keys), but it bugs me that I can't do it.
BTW, Great Site. I was going to submit this as a simple log window control when it stablizes.
Chris Tracy
Research Programmer and Student
University of IL at Urbana/Champaign