[MPLAY32]

- Correctly set the trackbar range for long files. Patch by Ricardo Hanke (foreverwinter at hotmail dot de)
CORE-7631 #resolve #comment Thanks! Committed in r61279

svn path=/trunk/; revision=61279
This commit is contained in:
Thomas Faber 2013-12-15 19:46:09 +00:00
parent 5a9dd2eb87
commit 91a2cc0cad

View file

@ -231,7 +231,8 @@ OpenMciDevice(HWND hwnd, LPTSTR lpType, LPTSTR lpFileName)
return dwError; return dwError;
} }
SendMessage(hTrackBar, TBM_SETRANGE, (WPARAM) TRUE, (LPARAM) MAKELONG(1, mciStatus.dwReturn)); SendMessage(hTrackBar, TBM_SETRANGEMIN, (WPARAM) TRUE, (LPARAM) 1);
SendMessage(hTrackBar, TBM_SETRANGEMAX, (WPARAM) TRUE, (LPARAM) mciStatus.dwReturn);
SendMessage(hTrackBar, TBM_SETPAGESIZE, 0, 10); SendMessage(hTrackBar, TBM_SETPAGESIZE, 0, 10);
SendMessage(hTrackBar, TBM_SETLINESIZE, 0, 1); SendMessage(hTrackBar, TBM_SETLINESIZE, 0, 1);
SendMessage(hTrackBar, TBM_SETPOS, (WPARAM) TRUE, (LPARAM) 1); SendMessage(hTrackBar, TBM_SETPOS, (WPARAM) TRUE, (LPARAM) 1);