CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    CEDIT return problem

    I created a CEDIT multiline control, If want to go to second line to type something, it doesn't work when hit return, I must hit "ctrl-return". is there any way so that I can hit return to go to next line?

    another problem is if I have a initial string, I want it show up in multiline edit control, it's always shown in one line, for example, the initial string is "string 1\nstring 2", I want it to be in edit like this:
    string 1
    string 2

    but it doesn't, it shows in one line with a strange character in between


  2. #2
    Join Date
    Apr 1999
    Posts
    6

    Re: CEDIT return problem

    a) have you tried overwriting CDialog::OnOk(), which is automatically called when a user presses ENTER in a Dialog.
    b) use "\r\n" instead of "\n"

    LafeGoyek


  3. #3
    Join Date
    May 1999
    Posts
    318

    Re: CEDIT return problem

    Check the style 'Want return' of your edit control.


  4. #4
    Join Date
    Apr 1999
    Posts
    15

    Re: CEDIT return problem

    you can use richedit ctrl to instead edit ctrl


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured