SetWindowText();

This is a discussion on SetWindowText(); within the Windows Programming forums, part of the Platform Specific Boards category; how would i start a new line in the text of the function: example: SetWindowText(edit_box, texttexttexttext); say i wanted to ...

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070

    SetWindowText();

    how would i start a new line in the text of the function:

    example:
    SetWindowText(edit_box, texttexttexttext);

    say i wanted to have each word "text" appear on a different line...how would i do it???

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,669
    "word1\r\nword2\r\nword3\r\n" etc...

    gg

  3. #3
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    ok...thanx

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Remember to include the ES_MULITLINE style as well when creating the edit box.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SetWindowText()
    By jay kay in forum Windows Programming
    Replies: 1
    Last Post: 03-14-2005, 12:40 PM
  2. SetWindowText(...) in richedit controls
    By jimmy_anttila in forum Windows Programming
    Replies: 8
    Last Post: 05-21-2004, 01:57 PM
  3. SetWindowText()
    By COBOL2C++ in forum Windows Programming
    Replies: 4
    Last Post: 09-17-2003, 10:39 PM
  4. SetWindowText Error ;(
    By NickName-Here in forum Windows Programming
    Replies: 8
    Last Post: 07-19-2003, 06:17 PM
  5. SetWindowText
    By Thantos in forum Windows Programming
    Replies: 7
    Last Post: 12-10-2001, 02:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21