diff options
| author | nyamatongwe <devnull@localhost> | 2003-04-30 11:34:53 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-04-30 11:34:53 +0000 | 
| commit | 1b1ae40a5eecd9a3b70cddfa23d7f7eb9d09eba1 (patch) | |
| tree | 183413e1ef381240b954b9700d4a931bc99ced33 | |
| parent | b5cde15180a1a1abdb3a0a351ac6e25aa971b9be (diff) | |
| download | scintilla-mirror-1b1ae40a5eecd9a3b70cddfa23d7f7eb9d09eba1.tar.gz | |
Separated ifdefs around WM_UNICHAR and UNICODE_NOCHAR to work on some
compiler setups.
| -rw-r--r-- | win32/ScintillaWin.cxx | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 4bdddd023..d44769237 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -54,6 +54,9 @@  #ifndef WM_UNICHAR  #define WM_UNICHAR                      0x0109 +#endif + +#ifndef UNICODE_NOCHAR  #define UNICODE_NOCHAR                  0xFFFF  #endif @@ -634,6 +637,12 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam  	case WM_CHAR:  		if (!iscntrl(wParam&0xff) || !lastKeyDownConsumed) {  			if (IsUnicodeMode()) { +				// For a wide character version of the window: +				//char utfval[4]; +				//wchar_t wcs[2] = {wParam, 0}; +				//unsigned int len = UTF8Length(wcs, 1); +				//UTF8FromUCS2(wcs, 1, utfval, len); +				//AddCharUTF(utfval, len);  				AddCharBytes(static_cast<char>(wParam & 0xff));  			} else {  				AddChar(static_cast<char>(wParam & 0xff)); | 
