Supprime un contrôle Edit
#include <GuiEdit.au3>
_GUICtrlEdit_Destroy ( ByRef $hWnd )
$hWnd | ID/handle du contrôle |
Succès: | Retourne True, $hWnd est remis à 0. |
Échec: | Retourne False. |
Réservé à une utilisation avec les contrôles d'édition créés avec _GUICtrlEdit_Create().
#include <GUIConstantsEx.au3> #include <GuiEdit.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $hGUI, $hEdit ; Crée une GUI $hGUI = GUICreate("Edit Destroy", 400, 300) $hEdit = _GUICtrlEdit_Create($hGUI, "This is a test" & @CRLF & "Another Line", 2, 2, 394, 268) GUISetState(@SW_SHOW) _GUICtrlEdit_AppendText($hEdit, @CRLF & "Append to the end?") MsgBox($MB_SYSTEMMODAL, "Information", "Destroy Edit Control") _GUICtrlEdit_Destroy($hEdit) ; Boucle jusqu'à ce que l'utilisateur quitte. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example