locked
strange if input characters like % and $ in ES_MULTILINE Edit box RRS feed

  • Question

  • I create an edit box using sth like CreateWindowEx(WS_EX_CLIENTEDGE,
    _T("EDIT"), ......)   with the style like WS_CHILD | WS_VISIBLE
    | WS_BORDER | WS_VSCROLL | ES_AUTOVSCROLL
    | ES_MULTILINE | ES_WANTRETURN

    I just type in "dddddddddddddddddddddddd $ ddddddddddddddddddddd",  when it reaches the end of the line it becomes 

    two lines like below:

    dddddddddddddddddddddddd

    $dddddddddddddddddddddd

    this also happens to the character "%"  too.  I do not know why these characters are different.  

    Wednesday, June 3, 2020 6:29 AM

Answers

  • Those character have nothing different

    If you don't use ES_AUTOHSCROLL style, it word wraps...

    • Marked as answer by NKJayFang Wednesday, June 3, 2020 9:01 AM
    Wednesday, June 3, 2020 8:32 AM

All replies

  • Those character have nothing different

    If you don't use ES_AUTOHSCROLL style, it word wraps...

    • Marked as answer by NKJayFang Wednesday, June 3, 2020 9:01 AM
    Wednesday, June 3, 2020 8:32 AM
  • Thanks for the reply, but the result is the same after I remove ES_AUTOVSCROLL.  
    Wednesday, June 3, 2020 8:54 AM
  • Sorry, I misunderstood your point.  Actually you are absolutely right.

    If I add ES_AUTOHSCROLL , things are fine now. 

    Thanks a lot!

    Wednesday, June 3, 2020 9:01 AM