CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    CEdit control, I use SetSel to select some text in an edit control, but don't shows it in the screen

    Hi,

    I have and CEdit control, and I want to show to the user in blue (selected) some text, I use SetSel to select some text in an edit control, but don't shows it in the screen ( the blue thing), How can I do this ?

    Thanks, Bye !
    Braulio


  2. #2
    Join Date
    May 1999
    Location
    Atlanta, GA, USA
    Posts
    443

    Re: CEdit control, I use SetSel to select some text in an edit control, but don't shows it in the sc

    Hi.

    SetSel only works when the edit box has a focus in OninitDialog().
    Otherwise, you need additional code when you want to work SetSel
    tab key.
    Did you set a focus?

    HTH.
    -Masaaki Onishi-


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured