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. Lines in Edit Control

Lines in Edit Control

Scheduled Pinned Locked Moved C / C++ / MFC
c++
3 Posts 2 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.
  • V Offline
    V Offline
    vbmike
    wrote on last edited by
    #1

    Have searched and searched the forum but cannot find the answer....I am using code found on CodeProject to append lines to an edit box in an MFC application I am playing with.(Hobby Programmer). I want to delete the second line of the text (entered programmatically by selchange of combo box)if the text is different from the existing. For the life of me I cannot figger this out. thanks in advance. Michael (previously vb now c++) Judy

    J 1 Reply Last reply
    0
    • V vbmike

      Have searched and searched the forum but cannot find the answer....I am using code found on CodeProject to append lines to an edit box in an MFC application I am playing with.(Hobby Programmer). I want to delete the second line of the text (entered programmatically by selchange of combo box)if the text is different from the existing. For the life of me I cannot figger this out. thanks in advance. Michael (previously vb now c++) Judy

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      It has been a while since I have done any thing like this but if you look in the index of the MSDN library and find "edit controls [Win32]" you should be able to figure it out. If I remember right, you need to select the text to be deleted (EM_SETSEL) and then send WM_CLEAR [delete/clear current selection] message to the control or EM_CUT [delete and copy current selection to the clipboard]. INTP

      V 1 Reply Last reply
      0
      • J John R Shaw

        It has been a while since I have done any thing like this but if you look in the index of the MSDN library and find "edit controls [Win32]" you should be able to figure it out. If I remember right, you need to select the text to be deleted (EM_SETSEL) and then send WM_CLEAR [delete/clear current selection] message to the control or EM_CUT [delete and copy current selection to the clipboard]. INTP

        V Offline
        V Offline
        vbmike
        wrote on last edited by
        #3

        I'll give it a go. thanks for the reply. michael judy m_judy@hotmail.com "According to my calculations there is no problem"

        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