From b32afa282ce20f929afcf896a805d84a7edea76c Mon Sep 17 00:00:00 2001 From: Jinhao Date: Tue, 28 Jun 2016 21:21:47 +0800 Subject: [PATCH] minor change --- source/gui/basis.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/gui/basis.cpp b/source/gui/basis.cpp index fc8c92eb..e6742807 100644 --- a/source/gui/basis.cpp +++ b/source/gui/basis.cpp @@ -40,8 +40,10 @@ mouse_wheel::mouse_wheel() { #if defined(NANA_WINDOWS) // https://msdn.microsoft.com/en-us/library/ms997498.aspx - #define SPI_SETWHEELSCROLLCHARS 0x006D - #define SPI_GETWHEELSCROLLCHARS 0x006C + //#define SPI_SETWHEELSCROLLCHARS 0x006D +# ifndef SPI_GETWHEELSCROLLCHARS +# define SPI_GETWHEELSCROLLCHARS 0x006C +# endif ::SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, &lines, 0); ::SystemParametersInfo(SPI_GETWHEELSCROLLCHARS, 0, &characters, 0); #endif