Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. cursor in readonly mode richedit control..

cursor in readonly mode richedit control..

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mirraa
    wrote on last edited by
    #1

    i'm dispalying a set of strings in richedit which is in readonly mode...but after dispalying the cursor is not seen in the last letter... it is in the firstline first column itself... how to make the cursor move while the string is getting displayed successively and at the end cursor should be at the end of string.... any help with a code snippet.... thanx n advance...

    N L 2 Replies Last reply
    0
    • M mirraa

      i'm dispalying a set of strings in richedit which is in readonly mode...but after dispalying the cursor is not seen in the last letter... it is in the firstline first column itself... how to make the cursor move while the string is getting displayed successively and at the end cursor should be at the end of string.... any help with a code snippet.... thanx n advance...

      N Offline
      N Offline
      Nishad S
      wrote on last edited by
      #2

      m_richedit.SetSel( pos, pos );

      - NS -

      1 Reply Last reply
      0
      • M mirraa

        i'm dispalying a set of strings in richedit which is in readonly mode...but after dispalying the cursor is not seen in the last letter... it is in the firstline first column itself... how to make the cursor move while the string is getting displayed successively and at the end cursor should be at the end of string.... any help with a code snippet.... thanx n advance...

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Try: int i = m_RichLogCtrl.GetWindowTextLength(); m_RichLogCtrl.SetSel(i, i); Best Wishes, -David Delaune

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups