From ca17c0cc2e37c264782d3f1db49278366e562dcb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 20 Mar 2003 11:22:14 +0000 Subject: Patch from Simon Steele to implement the hotspot style and associated notifications. --- win32/ScintillaWin.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'win32/ScintillaWin.cxx') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 1ac55315f..c8a47c11b 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -615,6 +615,8 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam DisplayCursor(Window::cursorReverseArrow); } else if (PointInSelection(Point(pt.x, pt.y))) { DisplayCursor(Window::cursorArrow); + } else if (PointIsHotspot(Point(pt.x, pt.y))) { + DisplayCursor(Window::cursorHand); } else { DisplayCursor(Window::cursorText); } @@ -667,7 +669,7 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam return DLGC_HASSETSEL | DLGC_WANTALLKEYS; case WM_KILLFOCUS: - if (!IsChild(reinterpret_cast(wMain.GetID()), + if (!IsChild(reinterpret_cast(wMain.GetID()), reinterpret_cast(wParam))) { SetFocusState(false); } @@ -833,6 +835,12 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam ::SetFocus(MainHWND()); break; +#ifdef SCI_LEXER + case SCI_LOADLEXERLIBRARY: + //LexerManager::GetInstance()->Load(reinterpret_cast(lParam)); + break; +#endif + default: return ScintillaBase::WndProc(iMessage, wParam, lParam); } @@ -1993,8 +2001,8 @@ bool Scintilla_RegisterClasses(void *hInstance) { bool result = ScintillaWin::Register(reinterpret_cast(hInstance)); #ifdef SCI_LEXER Scintilla_LinkLexers(); - LexerManager *lexMan = LexerManager::GetInstance(); - lexMan->Load(); + //LexerManager *lexMan = LexerManager::GetInstance(); + //lexMan->Load(); #endif return result; } -- cgit v1.2.3