diff options
author | nyamatongwe <unknown> | 2003-04-30 11:34:53 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-04-30 11:34:53 +0000 |
commit | f837e696b864b2bc5ce1aff2d7d789146d7f5fde (patch) | |
tree | 183413e1ef381240b954b9700d4a931bc99ced33 | |
parent | 9fbb2672d2753efdb8fc6149c6e257e8c568558e (diff) | |
download | scintilla-mirror-f837e696b864b2bc5ce1aff2d7d789146d7f5fde.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)); |