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 to allow line breaks inside of a multiline CEdit control ?

How to allow line breaks inside of a multiline CEdit control ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
8 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.
  • Y Offline
    Y Offline
    Yovav
    wrote on last edited by
    #1

    How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ? Thanks in advance.

    Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.

    _ T 2 Replies Last reply
    0
    • Y Yovav

      How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ? Thanks in advance.

      Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.

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

      Yovav wrote:

      How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

      Set the "want return" property to true for the edit control under the properties

      You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

      Y 2 Replies Last reply
      0
      • Y Yovav

        How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ? Thanks in advance.

        Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        Yovav wrote:

        How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

        Check property multiline of edit control... also you can check out want return property of edit control

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        _ Y 2 Replies Last reply
        0
        • T ThatsAlok

          Yovav wrote:

          How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

          Check property multiline of edit control... also you can check out want return property of edit control

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

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

          I think he has set it already.

          You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

          T 1 Reply Last reply
          0
          • _ _AnsHUMAN_

            I think he has set it already.

            You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            yeap i know, thats why corrected my mistake :-)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

            1 Reply Last reply
            0
            • _ _AnsHUMAN_

              Yovav wrote:

              How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

              Set the "want return" property to true for the edit control under the properties

              You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

              Y Offline
              Y Offline
              Yovav
              wrote on last edited by
              #6

              My "Want Return" property is True but its still doesn't work, I'm using the ON_EN_CHANGE event OnEnChangeEditPlanData() (but VK_RETURN does not even go in there) Also using Vista 64 but dont think it should matter.

              Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.

              1 Reply Last reply
              0
              • _ _AnsHUMAN_

                Yovav wrote:

                How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

                Set the "want return" property to true for the edit control under the properties

                You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

                Y Offline
                Y Offline
                Yovav
                wrote on last edited by
                #7

                OK, Finally got it, I found out that I was processing VK_RETURN on PreTranslateMessage of that form (Opps :-)) Thanks anyways.

                Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.

                1 Reply Last reply
                0
                • T ThatsAlok

                  Yovav wrote:

                  How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

                  Check property multiline of edit control... also you can check out want return property of edit control

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                  Y Offline
                  Y Offline
                  Yovav
                  wrote on last edited by
                  #8

                  OK, Finally got it, I found out that I was processing VK_RETURN on PreTranslateMessage of that form (Opps :-)) Thanks anyways.

                  Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.

                  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