From 331d7544ceccdd2ebb77c0497eb458eaaf0e5915 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 22 Sep 2000 11:19:36 +0000 Subject: An hasFocus flag was added to separate logical focus from environment determined focus. hasFocus determines whether the caret is displayed. --- win32/ScintillaWin.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'win32') 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; -- cgit v1.2.3