turning off word wrap

justa very quick q...how would I turn off word wrapping in a CEditView?
Who is Participating?
chensuConnect With a Mentor Commented:
theEditView.GetEditCtrl().ModifyStyle(0, ES_AUTOHSCROLL);
openGLAuthor Commented:
ok, put the line GetEditCtrl().ModifyStyle(0, ES_AUTOHSCROLL); in the CEditView's OnInitialUpdate function...doesn't seem to work though...just wraps just like before.  Hopefully what it should do is make a horizontal scrollbar when the text goes beyond the margin, and just keep the text on the correct line beyond the frame.
openGLAuthor Commented:
whoops...I'm sorry...made a silly mistake...everything's fine now
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.