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. mulity line edit control

mulity line edit control

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • A Offline
    A Offline
    ani_ikram
    wrote on last edited by
    #1

    i want to allow user that he can press enter in edit control and i want to set text in edit control like this SetDlgItemText(IDC_EDIT1,' abc \n xyz '); \n normaly use for new line my edit control in multil line but \n does not add new line how i can set mulity line text in mulityline edit control?

    N 1 Reply Last reply
    0
    • A ani_ikram

      i want to allow user that he can press enter in edit control and i want to set text in edit control like this SetDlgItemText(IDC_EDIT1,' abc \n xyz '); \n normaly use for new line my edit control in multil line but \n does not add new line how i can set mulity line text in mulityline edit control?

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

      ani_ikram wrote:

      SetDlgItemText(IDC_EDIT1,' abc \n xyz ');

      Did you try "\r\n" ??? SetDlgItemText(IDC_EDIT1," abc \r\n xyz ");

      nave [OpenedFileFinder]

      A 1 Reply Last reply
      0
      • N Naveen

        ani_ikram wrote:

        SetDlgItemText(IDC_EDIT1,' abc \n xyz ');

        Did you try "\r\n" ??? SetDlgItemText(IDC_EDIT1," abc \r\n xyz ");

        nave [OpenedFileFinder]

        A Offline
        A Offline
        ani_ikram
        wrote on last edited by
        #3

        yes it is working but like thie SetDlgItemText(IDC_EDIT1,_T("abc \r\n sdfj");

        D 1 Reply Last reply
        0
        • A ani_ikram

          yes it is working but like thie SetDlgItemText(IDC_EDIT1,_T("abc \r\n sdfj");

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          ani_ikram wrote:

          yes it is working but like thie

          Is this supposed to mean something? :confused:

          "Love people and use things, not love things and use people." - Unknown

          "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

          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