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

    CStatic SetWindowMessage ...two lines

    Does anyone knows how to put two lines into a CStatic by SetWindowText.

    SetWindowText(_T("abcdefgh\\nijklmno"));



    does not works. In the Resource Editor it works by setting Text Properties to CStatic


  2. #2
    Join Date
    May 1999
    Posts
    44

    Re: CStatic SetWindowMessage ...two lines

    If U enter two lines of text, the text is automatically adjusted and it is scrolled on to the next line depending on the window size.
    But if U want to force a particular text to come in the next line, I think U can use \r\n.
    Hope this helps.



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