|
|
|
@ -153,7 +153,7 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
|
|
|
|
|
{
|
|
|
|
|
if (!_hLib)
|
|
|
|
|
{
|
|
|
|
|
throw std::runtime_error("ScintillaEditView::init : SCINTILLA ERROR - Can not load the dynamic library");
|
|
|
|
|
throw std::exception("ScintillaEditView::init : SCINTILLA ERROR - Can not load the dynamic library");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Window::init(hInst, hPere);
|
|
|
|
@ -170,7 +170,7 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
|
|
|
|
|
|
|
|
|
|
if (!_hSelf)
|
|
|
|
|
{
|
|
|
|
|
throw std::runtime_error("ScintillaEditView::init : CreateWindowEx() function return null");
|
|
|
|
|
throw std::exception("ScintillaEditView::init : CreateWindowEx() function return null");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_pScintillaFunc = (SCINTILLA_FUNC)::SendMessage(_hSelf, SCI_GETDIRECTFUNCTION, 0, 0);
|
|
|
|
@ -180,12 +180,12 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
|
|
|
|
|
|
|
|
|
|
if (!_pScintillaFunc)
|
|
|
|
|
{
|
|
|
|
|
throw std::runtime_error("ScintillaEditView::init : SCI_GETDIRECTFUNCTION message failed");
|
|
|
|
|
throw std::exception("ScintillaEditView::init : SCI_GETDIRECTFUNCTION message failed");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!_pScintillaPtr)
|
|
|
|
|
{
|
|
|
|
|
throw std::runtime_error("ScintillaEditView::init : SCI_GETDIRECTPOINTER message failed");
|
|
|
|
|
throw std::exception("ScintillaEditView::init : SCI_GETDIRECTPOINTER message failed");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
execute(SCI_SETMARGINMASKN, _SC_MARGE_FOLDER, SC_MASK_FOLDERS);
|
|
|
|
|