turning off word wrap

justa very quick q...how would I turn off word wrapping in a CEditView?
openGLAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
theEditView.GetEditCtrl().ModifyStyle(0, ES_AUTOHSCROLL);
0
 
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.
0
 
openGLAuthor Commented:
whoops...I'm sorry...made a silly mistake...everything's fine now
0
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.