enable huge value range in highgui sliders on Windows (patch #941)

This commit is contained in:
Vadim Pisarevsky 2012-10-10 23:05:15 +04:00
parent 1d68850cb2
commit 63c9412922

View File

@ -2296,7 +2296,8 @@ icvCreateTrackbar( const char* trackbar_name, const char* window_name,
trackbar->maxval = count;
/* Adjust slider parameters */
SendMessage(trackbar->hwnd, TBM_SETRANGE, (WPARAM)TRUE, (LPARAM)MAKELONG(0, count));
SendMessage(trackbar->hwnd, TBM_SETRANGEMIN, (WPARAM)TRUE, (LPARAM)0);
SendMessage(trackbar->hwnd, TBM_SETRANGEMAX, (WPARAM)TRUE, (LPARAM)count);
SendMessage(trackbar->hwnd, TBM_SETTICFREQ, (WPARAM)1, (LPARAM)0 );
if( val )
pos = *val;