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