http://bugs.winehq.org/show_bug.cgi?id=12567
--- Comment #5 from Dylan Smith dylan.ah.smith@gmail.com 2008-10-03 17:14:27 --- Created an attachment (id=16452) --> (http://bugs.winehq.org/attachment.cgi?id=16452) richedit: ES_AUTOHSCROLL window style disables word wrapping.
I can confirm the inconsistency with native richedit.
I tested the program with WINEDEBUG="message" and filtered with grep RichEdit in order to figure out how word wrap was being changed. The program seems to destroy the window and re-create while while toggling the ES_AUTOHSCROLL style bit used on creation.
Thanks for pointing out the change that caused the scrollbar to affect whether or not the wrapping was happening. I grepped the logs to find the commit, and at first it seems like he mistook WS_HSCROLL as affecting the word wrap instead of ES_AUTOHSCROLL, but normally either ES_AUTOHSCROLL or WS_HSCROLL turns off word wrap.
The attached patch seems to fix part of the problem by allowing ES_AUTOHSCROLL to turn off word wrap.
The case I fixed is: ssNone + no WordWrap = no word wrapping
So the case that is still inconsistent is: ssBoth + WordWrap except word wrapping, but currently doesn't word wrap