From 073480a615d644f8c61e339a500243db00989a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=BCng?= Date: Tue, 27 Sep 2016 10:03:48 +1000 Subject: On Win32, mouse wheel scrolling can be restricted to only occur when the mouse is within the window. --- include/Scintilla.h | 2 ++ include/Scintilla.iface | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 0b5483043..2d6b06b22 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -682,6 +682,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETSTATUS 2383 #define SCI_SETMOUSEDOWNCAPTURES 2384 #define SCI_GETMOUSEDOWNCAPTURES 2385 +#define SCI_SETMOUSEWHEELCAPTURES 2696 +#define SCI_GETMOUSEWHEELCAPTURES 2697 #define SC_CURSORNORMAL -1 #define SC_CURSORARROW 2 #define SC_CURSORWAIT 4 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index d52c229bf..bee9aeef8 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1755,6 +1755,11 @@ set void SetMouseDownCaptures=2384(bool captures,) # Get whether mouse gets captured. get bool GetMouseDownCaptures=2385(,) +# Set whether the mouse wheel can be active outside the window. +set void SetMouseWheelCaptures=2696(bool captures,) +# Get whether mouse wheel can be active outside the window. +get bool GetMouseWheelCaptures=2697(,) + enu CursorShape=SC_CURSOR val SC_CURSORNORMAL=-1 val SC_CURSORARROW=2 -- cgit v1.2.3