aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-10-26 16:54:05 +1100
committernyamatongwe <unknown>2011-10-26 16:54:05 +1100
commit364b60217e9f79fb634e987302df94035c61558f (patch)
tree0270ed645dc3f748352379149cea607a6354f1a3 /src/Editor.cxx
parent5c994706efdabc3fdd547d169ed99192decf67b5 (diff)
downloadscintilla-mirror-364b60217e9f79fb634e987302df94035c61558f.tar.gz
Implement ILoader interface so that clients can load documents from
background threads.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index fb7f4c636..d52d2498f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -8708,6 +8708,16 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
(reinterpret_cast<Document *>(lParam))->Release();
break;
+ case SCI_CREATELOADER: {
+ Document *doc = new Document();
+ if (doc) {
+ doc->AddRef();
+ doc->Allocate(wParam);
+ doc->SetUndoCollection(false);
+ }
+ return reinterpret_cast<sptr_t>(static_cast<ILoader *>(doc));
+ }
+
case SCI_SETMODEVENTMASK:
modEventMask = wParam;
return 0;