http://bugs.winehq.org/show_bug.cgi?id=15352
--- Comment #2 from Dylan Smith dylan.ah.smith@gmail.com 2008-10-10 16:07:53 --- Created an attachment (id=16571) --> (http://bugs.winehq.org/attachment.cgi?id=16571) richedit: Fixed centering and right align with word wrap disabled.
This fixes the text centering issue when word wrapping is disabled by centering text to the window size, or left aligning the centered text if it is longer than the window width. This seems to be consistent with Windows when wrapping is disabled on window creation with ES_AUTOHSCROLL and/or WS_HSCROLL.
I did notice another inconsistency when I tried to disable word wrapping with EM_SETTARGETDEVICE. For some reason this caused the native richedit control to left align all text with word wrapping disabled. Again, there is something I am missing because native wordpad seems to use this message to disable wrapping, and still leaves centered text aligned to the center of the window.