aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-04-10 11:19:59 +1000
committerNeil <nyamatongwe@gmail.com>2015-04-10 11:19:59 +1000
commit5b4b87fca48a3717b73a6153dfb62adba04fb96a (patch)
treea53b0ab33463b517bcd4d4b138aaab2984db7404
parenta74efc2497e8983918c026c9989748a6cbdfc75d (diff)
downloadscintilla-mirror-5b4b87fca48a3717b73a6153dfb62adba04fb96a.tar.gz
Allow (null) use of KEYSUNICODE API when built to include deprecated features.
-rw-r--r--include/Scintilla.h2
-rw-r--r--win32/ScintillaWin.cxx2
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) ||