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

    How can I show some text selected in a multiline edit control ?

    Hi,

    I would like to show some text selected in a Edit control ( For searching options), how can I do that ?

    Thanks, Bye !
    Braulio


  2. #2
    Join Date
    Apr 1999
    Posts
    383

    Re: How can I show some text selected in a multiline edit control ?

    Use CEdit::SetSel(int nStartChar, int nEndChar, BOOL bNoScroll = FALSE );

    Dave


  3. #3
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    Thanks, but...

    Thanks, but it don't show the selected text ( blue mark), How can I do that ?

    Thanks, Bye !
    Braulio


  4. #4
    Join Date
    Apr 1999
    Posts
    383

    Re: Thanks, but...

    > Thanks, but it don't show the selected text ( blue mark), How can I do that ?

    I don't know, it works fine here... do you mean it doesn't highlight the text, or that it doesn't scroll the highlighted text into view? Or what?

    Blue mark?

    Dave


  5. #5
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    Sorry, I froget to put to false the Hide Selection property...

    Sorry, I froget to put to false the Hide Selection property...

    Thanks, Bye !
    Braulio


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