Hello,
I want to do a word wrap in FileEditor (in examples of dev-c++). This can be done by cuting the WS_HSCROLL parametr. But can be this maked in real time, by clicking in the option "word wrap" in file menu?
Sorry for my bad english ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I read the question yesterday I thought it would be as easy as setting up and calling:
case CM_WORDWRAP:
//MessageBox (NULL, "WORD WRAP", "About...", MB_OK);
SetWindowLong(editHwnd, GWL_STYLE, WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE | ES_WANTRETURN);
break;
// note WS_HSCROLL is left out, not a toggle, just trying to turn wordwrap off for the moment.
It removed the hScroll bar (after redraw) but didn't seem to change the word wrap. I saw some other examples at:
Hello,
I want to do a word wrap in FileEditor (in examples of dev-c++). This can be done by cuting the WS_HSCROLL parametr. But can be this maked in real time, by clicking in the option "word wrap" in file menu?
Sorry for my bad english ;)
try that again:
http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=EDIT+wordwrap
You can use SetWindowLong to change the styles of a Window.
When I read the question yesterday I thought it would be as easy as setting up and calling:
case CM_WORDWRAP:
//MessageBox (NULL, "WORD WRAP", "About...", MB_OK);
SetWindowLong(editHwnd, GWL_STYLE, WS_CHILD | WS_VISIBLE | WS_VSCROLL | ES_MULTILINE | ES_WANTRETURN);
break;
// note WS_HSCROLL is left out, not a toggle, just trying to turn wordwrap off for the moment.
It removed the hScroll bar (after redraw) but didn't seem to change the word wrap. I saw some other examples at:
http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=EDIT+wordwrap
but I had been hoping my experiment above just had an easily repaired oversight...
Regards,
Brian