code:var WM_USER = 0x0400; var TBM_SETPOS = (WM_USER+5); var TBM_GETPOS = WM_USER;
/*
Used to set the current position in the slider
> pPlusWnd is the window object saved into a variable.
> var pPlusWnd = MsgPlus.CreateWnd('mywindow.xml', 'MyWindow');
> sldrName is the name of the slider object
*/
pPlusWnd.SendControlMessage('sldrName', TBM_SETPOS, true, 100);
/*
Used to set the current position in the slider
> pPlusWnd is the window object saved into a variable.
> var pPlusWnd = MsgPlus.CreateWnd('mywindow.xml', 'MyWindow');
> sldrName is the name of the slider object
*/ var _currentPos = pPlusWnd.SendControlMessage('sldrQuality', TBM_GETPOS, 0, 0);