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