aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-09-22 11:19:36 +0000
committernyamatongwe <unknown>2000-09-22 11:19:36 +0000
commit331d7544ceccdd2ebb77c0497eb458eaaf0e5915 (patch)
tree02bf721d4bde545e627a6fac3e0e065fbba0a458 /win32/ScintillaWin.cxx
parenta72c43d215b4ca861c69c9f4a8d8a13b69e5d196 (diff)
downloadscintilla-mirror-331d7544ceccdd2ebb77c0497eb458eaaf0e5915.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.cxx8
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;