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. How can I get the selected text in edit view?

How can I get the selected text in edit view?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
5 Posts 5 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.
  • J Offline
    J Offline
    Jacky Tsee
    wrote on last edited by
    #1

    May somebody tell me how to get the selected text in the editView?( not using GetSelectedText() ) 3ks!

    _ N A J 4 Replies Last reply
    0
    • J Jacky Tsee

      May somebody tell me how to get the selected text in the editView?( not using GetSelectedText() ) 3ks!

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Use GetDlgItemText() or GetWindowText() Vision is Always important and so is your ATTITUDE. Wishes. Anshuman Dandekar -- modified at 0:04 Friday 21st April, 2006

      1 Reply Last reply
      0
      • J Jacky Tsee

        May somebody tell me how to get the selected text in the editView?( not using GetSelectedText() ) 3ks!

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        first get the edit ctrl in the CEditView using CEditView:GetEditCtrl() Now u will get a pointer of CEdit from which u can get the selected text nave

        1 Reply Last reply
        0
        • J Jacky Tsee

          May somebody tell me how to get the selected text in the editView?( not using GetSelectedText() ) 3ks!

          A Offline
          A Offline
          ablaye
          wrote on last edited by
          #4

          GetWindowText() can do the trick for you. Project4Hire.com - Find Freelance Progammers and Graphic Designers for all your project needs

          1 Reply Last reply
          0
          • J Jacky Tsee

            May somebody tell me how to get the selected text in the editView?( not using GetSelectedText() ) 3ks!

            J Offline
            J Offline
            John R Shaw
            wrote on last edited by
            #5
            1. Use GetEditCtrl() to get a pointer to the edit control. 2) Use the edit control method GetSel() to get the starting and ending character positions. 3) Use that information to read the selected text by using the edit controls CharFromPos() method in a loop. INTP Every thing is relative...
            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