aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-06-08 05:05:20 +0000
committernyamatongwe <devnull@localhost>2000-06-08 05:05:20 +0000
commit02d344866bc51a274f1605a6fcf3a14f8182e44e (patch)
tree676d883433f02331198c3e9e08c441cb0098bdad /src/Editor.cxx
parent7551b27470d2a415b1b1e8d1bf1a4efdb8b81d2b (diff)
downloadscintilla-mirror-02d344866bc51a274f1605a6fcf3a14f8182e44e.tar.gz
Added CreateDocument message and changed AddRefDoc and ReleaseDoc to
AddRefDocument and ReleaseDocument.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 25ccf97cd..f753e35ce 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3893,11 +3893,17 @@ LRESULT Editor::WndProc(UINT iMessage, WPARAM wParam, LPARAM lParam) {
SetDocPointer(reinterpret_cast<Document *>(lParam));
return 0;
- case SCI_ADDREFDOC:
+ case SCI_CREATEDOCUMENT: {
+ Document *doc = new Document();
+ doc->AddRef();
+ return reinterpret_cast<LRESULT>(doc);
+ }
+
+ case SCI_ADDREFDOCUMENT:
(reinterpret_cast<Document *>(lParam))->AddRef();
break;
- case SCI_RELEASEDOC:
+ case SCI_RELEASEDOCUMENT:
(reinterpret_cast<Document *>(lParam))->Release();
break;