Fixed: Send an Unicode empty string
--HG-- branch : develop
This commit is contained in:
parent
8c253955b7
commit
dcb3f2b149
1 changed files with 2 additions and 2 deletions
|
@ -502,7 +502,7 @@ void CWinDisplayer::clear ()
|
||||||
SendMessageW (_HEdit, EM_SETSEL, 0, nIndex);
|
SendMessageW (_HEdit, EM_SETSEL, 0, nIndex);
|
||||||
|
|
||||||
// clear all the text
|
// clear all the text
|
||||||
SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) "");
|
SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) L"");
|
||||||
|
|
||||||
SendMessageW(_HEdit,EM_SETMODIFY,(WPARAM)TRUE,(LPARAM)0);
|
SendMessageW(_HEdit,EM_SETMODIFY,(WPARAM)TRUE,(LPARAM)0);
|
||||||
|
|
||||||
|
@ -575,7 +575,7 @@ void CWinDisplayer::display_main ()
|
||||||
LRESULT oldIndex2 = SendMessageW (_HEdit, EM_LINEINDEX, nblineremove, 0);
|
LRESULT oldIndex2 = SendMessageW (_HEdit, EM_LINEINDEX, nblineremove, 0);
|
||||||
//nlassert (oldIndex2 != -1);
|
//nlassert (oldIndex2 != -1);
|
||||||
SendMessageW (_HEdit, EM_SETSEL, oldIndex1, oldIndex2);
|
SendMessageW (_HEdit, EM_SETSEL, oldIndex1, oldIndex2);
|
||||||
SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) "");
|
SendMessageW (_HEdit, EM_REPLACESEL, FALSE, (LPARAM) L"");
|
||||||
|
|
||||||
// update the selection due to the erasing
|
// update the selection due to the erasing
|
||||||
sint dt = (sint)(oldIndex2 - oldIndex1);
|
sint dt = (sint)(oldIndex2 - oldIndex1);
|
||||||
|
|
Loading…
Reference in a new issue