From 5ea3ecdc3b62f43d79bfbb706b77370a5efdff21 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Sun, 19 Jan 2014 18:32:22 +0400 Subject: [PATCH] horisontal mwhell support --- modules/highgui/src/window_w32.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/highgui/src/window_w32.cpp b/modules/highgui/src/window_w32.cpp index 23aa02a..0c397fd 100644 --- a/modules/highgui/src/window_w32.cpp +++ b/modules/highgui/src/window_w32.cpp @@ -90,6 +90,10 @@ static const char* trackbar_text = #endif +#ifndef WM_MOUSEHWHEEL + #define WM_MOUSEHWHEEL 0x020E +#endif + static void FillBitmapInfo( BITMAPINFO* bmi, int width, int height, int bpp, int origin ) { assert( bmi && width >= 0 && height >= 0 && (bpp == 8 || bpp == 24 || bpp == 32)); @@ -1363,9 +1367,7 @@ MainWindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) break; case WM_MOUSEWHEEL: -#if defined WM_MOUSEHWHEEL case WM_MOUSEHWHEEL: -#endif if( window->on_mouse ) { int flags = (wParam & MK_LBUTTON ? CV_EVENT_FLAG_LBUTTON : 0)| -- 2.7.4