Function Reference


_GUICtrlSlider_Destroy

Delete the control

#include <GuiSlider.au3>
_GUICtrlSlider_Destroy ( ByRef $hWnd )

Parameters

$hWnd Control ID/Handle to the control

Return Value

Success: True, $hWnd is set to 0.
Failure: False.

Remarks

Restricted to only be used on Slider controls created with _GUICtrlSlider_Create().

Related

_GUICtrlSlider_Create

Example

#include <GUIConstantsEx.au3>
#include <GuiSlider.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $hGUI, $hSlider

        ; Create GUI
        $hGUI = GUICreate("(UDF Created) Slider Destroy", 400, 296)
        $hSlider = _GUICtrlSlider_Create($hGUI, 2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS))
        GUISetState(@SW_SHOW)

        MsgBox($MB_SYSTEMMODAL, "Information", "Destroy Slider")
        _GUICtrlSlider_Destroy($hSlider)

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>Example