Re: can't hide the caret!

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 10/28/04

  • Next message: Christian ASTOR: "Re: can't hide the caret!"
    Date: Thu, 28 Oct 2004 15:32:32 -0400
    
    

    "Steve Alpert" <sra@newsgroups.nospam> wrote in message
    news:OTkaTHRvEHA.1264@TK2MSFTNGP12.phx.gbl...
    > 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
    returns FALSE.

        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
    -gchanson@mvps.org
    

  • Next message: Christian ASTOR: "Re: can't hide the caret!"

    Relevant Pages

    • Re: Caret Width in Word
      ... does the VB code window have focus when you are doing ... The code produced a wide caret in Word, but at the x,y coordinates of the ... the VB Editor window has the focus. ... Dim objSEL As Word.Selection ...
      (microsoft.public.vb.winapi)
    • Re: cant hide the caret!
      ... > HideCaret hides the caret only if the specified window owns the caret. ... > verticle line instead of the default underline. ...
      (microsoft.public.win32.programmer.ui)
    • Re: Caret control
      ... > if RiscCAD can revert to standard caret positioning in windows. ... > the pointer enters a window. ...
      (comp.sys.acorn.programmer)
    • Re: api to place caret in a control
      ... >> I've written a vb6 program that interacts with another ... >> one window in particular. ... >>where the caret currently is. ...
      (microsoft.public.vb.winapi)
    • Caret control
      ... RiscCAD can revert to standard caret positioning in windows. ... pointer enters a window. ...
      (comp.sys.acorn.programmer)