comparison 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
comparison
equal deleted inserted replaced
2228:2407c8b46143 2229:abbda3db3a3c
9292 dw_window_set_style(handle, 0, ES_AUTOHSCROLL); 9292 dw_window_set_style(handle, 0, ES_AUTOHSCROLL);
9293 else 9293 else
9294 dw_window_set_style(handle, ES_AUTOHSCROLL, ES_AUTOHSCROLL); 9294 dw_window_set_style(handle, ES_AUTOHSCROLL, ES_AUTOHSCROLL);
9295 /* If it is a rich edit control use the rich edit message */ 9295 /* If it is a rich edit control use the rich edit message */
9296 if(hrichedit || hmsftedit) 9296 if(hrichedit || hmsftedit)
9297 { 9297 SendMessage(handle, EM_SETTARGETDEVICE, 0, state ? 0 : 1);
9298 if(state)
9299 SendMessage(handle, EM_SETOPTIONS, (WPARAM)ECOOP_AND, (LPARAM)~ECO_AUTOHSCROLL);
9300 else
9301 SendMessage(handle, EM_SETOPTIONS, (WPARAM)ECOOP_OR, (LPARAM)ECO_AUTOHSCROLL);
9302 }
9303 } 9298 }
9304 9299
9305 /* 9300 /*
9306 * Sets the word auto complete state of an MLE box. 9301 * Sets the word auto complete state of an MLE box.
9307 * Parameters: 9302 * Parameters: