Re: can't hide the caret!
From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: Thu, 28 Oct 2004 15:32:32 -0400
"Steve Alpert" <email@example.com> wrote in message
> I have an EDIT window with ES_READONLY attribute. For Accessibility, I
> need to let a user have focus in this window. I don't want to show the
> caret. I call HideCaret but get an error (5: access denied). Any idea
> why? I checked newsgroups but no clues..
In the remarks section of the MSDN article on HideCaret, it says:
HideCaret hides the caret only if the specified window owns the caret. If
the specified window does not own the caret, HideCaret does nothing and
I don't think edit controls use the standard caret because they use a
verticle line instead of the default underline.
-- -GJC [MS Windows SDK MVP] -Software Consultant (Embedded systems and Real Time Controls) - http://www.mvps.org/ArcaneIncantations/consulting.htm -firstname.lastname@example.org