diff options
author | nyamatongwe <unknown> | 2003-03-20 11:22:14 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-03-20 11:22:14 +0000 |
commit | ca17c0cc2e37c264782d3f1db49278366e562dcb (patch) | |
tree | 269e3f31c3495acbd880f76129f6f16b0a51da96 /win32/ScintillaWin.cxx | |
parent | 79fee676f20f4847e666bff5d73bfe029b24aca0 (diff) | |
download | scintilla-mirror-ca17c0cc2e37c264782d3f1db49278366e562dcb.tar.gz |
Patch from Simon Steele to implement the hotspot style and associated
notifications.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
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<HWND>(wMain.GetID()), + if (!IsChild(reinterpret_cast<HWND>(wMain.GetID()), reinterpret_cast<HWND>(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<const char*>(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>(hInstance)); #ifdef SCI_LEXER Scintilla_LinkLexers(); - LexerManager *lexMan = LexerManager::GetInstance(); - lexMan->Load(); + //LexerManager *lexMan = LexerManager::GetInstance(); + //lexMan->Load(); #endif return result; } |