diff options
| author | nyamatongwe <devnull@localhost> | 2000-09-22 11:19:36 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2000-09-22 11:19:36 +0000 |
| commit | 80abe6e55f1925c4be355d827351b2c0d8afc3c1 (patch) | |
| tree | 02bf721d4bde545e627a6fac3e0e065fbba0a458 /win32/ScintillaWin.cxx | |
| parent | 2399b9f209b208a56dd844f31c911a4e049885f8 (diff) | |
| download | scintilla-mirror-80abe6e55f1925c4be355d827351b2c0d8afc3c1.tar.gz | |
An hasFocus flag was added to separate logical focus from environment
determined focus. hasFocus determines whether the caret is displayed.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index dfb53a825..b3b40660b 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -388,7 +388,7 @@ LRESULT ScintillaWin::WndProc(unsigned int iMessage, unsigned long wParam, long // i.e. if datazoomed out only class structures are visible, when datazooming in the control // structures appear, then eventually the individual statements...) if (wParam & MK_SHIFT) { - return ::DefWindowProc(wMain.GetID(), iMessage, wParam, lParam); + return ::DefWindowProc(wMain.GetID(), iMessage, wParam, lParam); } // Either SCROLL or ZOOM. We handle the wheel steppings calculation @@ -501,14 +501,12 @@ LRESULT ScintillaWin::WndProc(unsigned int iMessage, unsigned long wParam, long return DLGC_HASSETSEL | DLGC_WANTALLKEYS; case WM_KILLFOCUS: - NotifyFocus(false); - DropCaret(); + SetFocusState(false); //RealizeWindowPalette(true); break; case WM_SETFOCUS: - NotifyFocus(true); - ShowCaretAtCurrentPosition(); + SetFocusState(true); RealizeWindowPalette(false); break; |
