aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-06-13 19:40:18 +1000
committernyamatongwe <unknown>2011-06-13 19:40:18 +1000
commitde1ba6ffa1e4c3fff61f6bcfb3315357ff28ae08 (patch)
treedbfb97a4518e6c30471f88d49c13379eefe858d6 /src/Editor.cxx
parent1741f339d4cac847cf9c465a8a1494fe7b50629a (diff)
downloadscintilla-mirror-de1ba6ffa1e4c3fff61f6bcfb3315357ff28ae08.tar.gz
Added Identifier property.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 160f94d7c..3f6e533b6 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4303,6 +4303,10 @@ void Editor::DelCharBack(bool allowLineStartDeletion) {
void Editor::NotifyFocus(bool) {}
+void Editor::SetCtrlID(int identifier) {
+ ctrlID = identifier;
+}
+
void Editor::NotifyStyleToNeeded(int endStyleNeeded) {
SCNotification scn = {0};
scn.nmhdr.code = SCN_STYLENEEDED;
@@ -9119,6 +9123,13 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_CHANGELEXERSTATE:
pdoc->ChangeLexerState(wParam, lParam);
break;
+
+ case SCI_SETIDENTIFIER:
+ SetCtrlID(wParam);
+ break;
+
+ case SCI_GETIDENTIFIER:
+ return GetCtrlID();
default:
return DefWndProc(iMessage, wParam, lParam);