Obtient la position de fin de la plage de sélection en cours
#include <GuiSlider.au3>
_GUICtrlSlider_GetSelEnd ( $hWnd )
$hWnd | ID/handle du contrôle Slider |
#include <GUIConstantsEx.au3> #include <GuiSlider.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $idSlider ; Crée une GUI GUICreate("Slider Get Sel End", 400, 296) $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE)) GUISetState(@SW_SHOW) ; Définit Sel End _GUICtrlSlider_SetSelEnd($idSlider, 50) ; Obtient Sel End MsgBox($MB_SYSTEMMODAL, "Information", "Sel End: " & _GUICtrlSlider_GetSelEnd($idSlider)) ; Boucle jusqu'à ce que l'utilisateur quitte. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example