Link to home
Start Free TrialLog in
Avatar of openGL
openGL

asked on

turning off word wrap

justa very quick q...how would I turn off word wrapping in a CEditView?
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of openGL
openGL

ASKER

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.
Avatar of openGL

ASKER

whoops...I'm sorry...made a silly mistake...everything's fine now