Horizontal Scrolling CRichEditView
-
Hello, I posted this problem yesterday and it didn't get any responses so I figured I would try it on more time... I have a MDI type app where one of my views was derived from CView and then converted into CRichEditView... Anyway everything works fine except I want to turn horizontal scrolling on and I would like to disable word wrapping. I have tried to change the window styles in PreCreateWindow but this doesn't seem to have any effect on horizontal scrolling. Any ideas? Has anyone had similar experiences? Thanks, Rob Whoever said nothing's impossible never tried slamming a revolving door!
-
Hello, I posted this problem yesterday and it didn't get any responses so I figured I would try it on more time... I have a MDI type app where one of my views was derived from CView and then converted into CRichEditView... Anyway everything works fine except I want to turn horizontal scrolling on and I would like to disable word wrapping. I have tried to change the window styles in PreCreateWindow but this doesn't seem to have any effect on horizontal scrolling. Any ideas? Has anyone had similar experiences? Thanks, Rob Whoever said nothing's impossible never tried slamming a revolving door!
I just figured it out.. Incase anyone else runs into this.... Inside OnInitialUpdate()
// Turn on the horizontal scroll bar
m_nWordWrap = WrapNone;
WrapChanged();Inside PreCreateWindow
cs.style += ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_LEFT | ES_AUTOHSCROLL | WS_HSCROLL;
Whoever said nothing's impossible never tried slamming a revolving door!