CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    MN
    Posts
    4

    CEditView - Adding CR/LF

    I am trying to add text to a CEditView. I am using:

    ((CEditView*)m_viewList.GetHead())->SetWindowText(NULL);
    ((CTestView*)m_viewList.GetHead())->GetEditCtrl().ReplaceSel("Blah Blah\n");

    However I am not able to get a new line with the \n.

    Thanks in advance for any assistance.

    HFC



    Henry Camacho
    Innovative Software Designs, Inc.
    [email protected]

  2. #2
    Join Date
    Oct 1999
    Location
    MN
    Posts
    4

    Re: CEditView - Adding CR/LF

    I Solved this myself, and I though I would pass on the fix. When sending a string to the Edit control make sure it has a "\r\n" ending it. This will cause a new line. "\n\r" does not work

    HFC


    Henry Camacho
    Innovative Software Designs, Inc.
    [email protected]

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