Results 1 to 4 of 4

Thread: \n

  1. #1

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Post \n

    How do I make the effect of \n in C++? I created an EDIT

    CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT","hello\nthis");

    it doesn't work, it just displays hello\nthis, instead of :
    hello
    this



    how would I make it a new line?please help

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You need to give it the ES_MULTILINE style (it's not an extended style, so it goes in with WM_CHILD, etc.).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    I think even then it just gives a black bar, try \r\n

  4. #4

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810
    \r\n worked, thanks!!!


    yes, I did ES_MULTILINE, ES_AUTOVSCROLL,ES_AUTOHSCROLL.

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

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