Supprime un contrôle DTP
#include <GuiDateTimePicker.au3>
_GUICtrlDTP_Destroy ( ByRef $hWnd )
$hWnd | Handle/ID du contrôle |
Succès: | Retourne True, $hWnd est remis à 0. |
Échec: | Retourne False. |
La fonction est réservée aux contrôles DTP créés avec _GUICtrlDTP_Create().
#include <GUIConstantsEx.au3> #include <GuiDateTimePicker.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $hGUI, $hHandleBefore, $hDTP ; Crée une GUI $hGUI = GUICreate("(UDF Created) DateTimePick Destroy", 400, 300) $hDTP = _GUICtrlDTP_Create($hGUI, 2, 6, 190) GUISetState(@SW_SHOW) MsgBox($MB_SYSTEMMODAL, "Information", "Destroying the Control for Handle: " & $hDTP) $hHandleBefore = $hDTP MsgBox($MB_SYSTEMMODAL, "Information", "Control Destroyed: " & _GUICtrlDTP_Destroy($hDTP) & @CRLF & _ "Handel Before Destroy: " & $hHandleBefore & @CRLF & _ "Handle After Destroy: " & $hDTP) ; Boucle jusqu'à ce que l'utilisateur quitte. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example