UDF > GUI > GuiMonthCal >


_GUICtrlMonthCal_Destroy

Supprime un contrôle MonthCal

#include <GuiMonthCal.au3>
_GUICtrlMonthCal_Destroy ( ByRef $hWnd )

Paramètre

$hWnd ID ou handle du contrôle Month Calendar

Valeur de retour

Succès: Retourne True, et $hWnd est défini à 0.
Échec: Retourne False.

Remarque

Réservé uniquement aux contrôles calendrier mensuel créés avec _GUICtrlMonthCal_Create().

En relation

_GUICtrlMonthCal_Create

Exemple

#include <GUIConstantsEx.au3>
#include <GuiMonthCal.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
    Local $hGUI, $hHandleBefore, $hMonthCal

    ; Crée une GUI
    $hGUI = GUICreate("Month Calendar Destroy", 400, 300)
    $hMonthCal = _GUICtrlMonthCal_Create($hGUI, 4, 4, $WS_BORDER)
    GUISetState(@SW_SHOW)

    $hHandleBefore = $hMonthCal
    MsgBox($MB_SYSTEMMODAL, "Information", "Destroying the Control for Handle: " & $hMonthCal)
    MsgBox($MB_SYSTEMMODAL, "Information", "Control Destroyed: " & _GUICtrlMonthCal_Destroy($hMonthCal) & @CRLF & _
            "Handel Before Destroy: " & $hHandleBefore & @CRLF & _
            "Handle After Destroy: " & $hMonthCal)

    ; Boucle jusqu'à ce que l'utilisateur quitte.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>Example