aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-01-06 00:18:45 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2003-01-06 00:18:45 +0000
commit066a41acdf18f1c3cbaf559097c3acdfc6a4530e (patch)
treef66d91fb48bd26928fea1fa058eebe9415ad64d3
parentcbdbe9d766cdf8a3b48d20563d9983db6e6f16f8 (diff)
downloadnewlib-066a41acdf18f1c3cbaf559097c3acdfc6a4530e.zip
newlib-066a41acdf18f1c3cbaf559097c3acdfc6a4530e.tar.gz
newlib-066a41acdf18f1c3cbaf559097c3acdfc6a4530e.tar.bz2
* include/winuser.h ((SPI_SETWHEELSCROLLLINES) Add define.
* include/zmouse.h (WHEEL_DELTA): Guard against prior definition. (WHEEL_PAGESCROLL): Likewise. (SPI_SETWHEELSCROLLLINES): Define, if not already done.
-rw-r--r--winsup/w32api/include/winuser.h1
-rw-r--r--winsup/w32api/include/zmouse.h13
2 files changed, 12 insertions, 2 deletions
diff --git a/winsup/w32api/include/winuser.h b/winsup/w32api/include/winuser.h
index 4844ba0..74790e2 100644
--- a/winsup/w32api/include/winuser.h
+++ b/winsup/w32api/include/winuser.h
@@ -1125,6 +1125,7 @@ extern "C" {
#define SPI_SETSOUNDSENTRY 65
#define SPI_SETSTICKYKEYS 59
#define SPI_SETTOGGLEKEYS 53
+#define SPI_SETWHEELSCROLLLINES 105
#define SPI_SETWORKAREA 47
#define SPIF_UPDATEINIFILE 1
#define SPIF_SENDWININICHANGE 2
diff --git a/winsup/w32api/include/zmouse.h b/winsup/w32api/include/zmouse.h
index abb61ea..764d43d 100644
--- a/winsup/w32api/include/zmouse.h
+++ b/winsup/w32api/include/zmouse.h
@@ -21,7 +21,16 @@
# define WM_MOUSEWHEEL (WM_MOUSELAST + 1)
#endif
-#define WHEEL_DELTA 120
-#define WHEEL_PAGESCROLL UINT_MAX
+#ifndef WHEEL_DELTA
+# define WHEEL_DELTA 120
+#endif
+
+#ifndef WHEEL_PAGESCROLL
+# define WHEEL_PAGESCROLL UINT_MAX
+#endif
+
+#ifndef SPI_SETWHEELSCROLLLINES
+# define SPI_SETWHEELSCROLLLINES 105
+#endif
#endif /* _ZMOUSE_H */