mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:55:41 +00:00
[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:
parent
5a9dd2eb87
commit
91a2cc0cad
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue