diff options
author | Neil <nyamatongwe@gmail.com> | 2015-04-10 11:19:59 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-04-10 11:19:59 +1000 |
commit | d0b7fcbb956615f3da6ea2c759467986f4a1c44b (patch) | |
tree | 91ce58cd0e29f51372f23927d3d110192b18dd74 | |
parent | c3afad8f2e5b8022069b18ed470b3afea262d651 (diff) | |
download | scintilla-mirror-d0b7fcbb956615f3da6ea2c759467986f4a1c44b.tar.gz |
Allow (null) use of KEYSUNICODE API when built to include deprecated features.
-rw-r--r-- | include/Scintilla.h | 2 | ||||
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index a337ac09b..22d36d34d 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -1155,6 +1155,8 @@ struct SCNotification { #define SC_CP_DBCS 1 #define SCI_SETUSEPALETTE 2039 #define SCI_GETUSEPALETTE 2139 +#define SCI_SETKEYSUNICODE 2521 +#define SCI_GETKEYSUNICODE 2522 #endif diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index bd8645540..41122db65 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1607,11 +1607,13 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam ::SetFocus(MainHWND()); break; +#ifdef INCLUDE_DEPRECATED_FEATURES case SCI_SETKEYSUNICODE: break; case SCI_GETKEYSUNICODE: return true; +#endif case SCI_SETTECHNOLOGY: if ((wParam == SC_TECHNOLOGY_DEFAULT) || |