CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    23

    Getting the cursor to blink to the right of text in a CEdit box control

    Hi,

    What function should i use to get the cursor to blink on the right side of text on a CEdit control?

    thanks

  2. #2
    Join Date
    May 2009
    Posts
    23

    Re: Getting the cursor to blink to the right of text in a CEdit box control

    Quote Originally Posted by austinium View Post
    Hi,

    What function should i use to get the cursor to blink on the right side of text on a CEdit control?

    thanks
    Oops i missed some details, I have a CButton which OnClick clears the contents of the CEdit box and place text("fill-in") there, then i use SetFocus() on the editbox. Now the cursor blinks to the left of fill-in , how do i get it to blink at the end of the string instead of the beginning?

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Getting the cursor to blink to the right of text in a CEdit box control

    CEdit::SetSel
    Victor Nijegorodov

  4. #4
    Join Date
    May 2009
    Posts
    23

    Re: Getting the cursor to blink to the right of text in a CEdit box control

    thanks, fixed.

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