Mercurial > dwindows
diff win/dw.c @ 2229:abbda3db3a3c
Win: Fix dw_mle_set_word_wrap() on Windows when -DRICHEDIT is enabled for MLEs.
Add a Word Wrap checkbox to dwtest for testing changing word wrap on the fly.
Rich Edit is not fully tested so this will probably land as default in 3.2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 03 Jan 2021 03:49:20 +0000 |
parents | 10a44abd0e83 |
children | 4d2619f31ebd |
line wrap: on
line diff
--- a/win/dw.c Mon Dec 28 19:52:27 2020 +0000 +++ b/win/dw.c Sun Jan 03 03:49:20 2021 +0000 @@ -9294,12 +9294,7 @@ dw_window_set_style(handle, ES_AUTOHSCROLL, ES_AUTOHSCROLL); /* If it is a rich edit control use the rich edit message */ if(hrichedit || hmsftedit) - { - if(state) - SendMessage(handle, EM_SETOPTIONS, (WPARAM)ECOOP_AND, (LPARAM)~ECO_AUTOHSCROLL); - else - SendMessage(handle, EM_SETOPTIONS, (WPARAM)ECOOP_OR, (LPARAM)ECO_AUTOHSCROLL); - } + SendMessage(handle, EM_SETTARGETDEVICE, 0, state ? 0 : 1); } /*