Löscht das RichEdit Control
#include <GuiRichEdit.au3>
_GUICtrlRichEdit_Destroy ( ByRef $hWnd )
$hWnd | Handle des Controls |
Erfolg: | 1, $hWnd wird auf 0 gesetzt |
Fehler: | 0 und setzt das @error Flag auf ungleich null |
@error: | 1 - Das Löschen des Controls misslang da eine andere Anwendung es blockierte |
Diese Funktion kann nur mit RichEdit Controls verwendet werden die mit _GUICtrlRichEdit_Create() erstellt wurden
- - - - - - - - Erklärung der Controls - - - - - - - -
#include <GUIConstantsEx.au3>
#include <GuiRichEdit.au3>
#include <WindowsConstants.au3>
Example()
Func Example()
Local $hGui, $iMsg, $idBtnDoIt, $hRichEdit
$hGui = GUICreate("Beispiel (" & StringTrimRight(@ScriptName, 4) & ")", 320, 350, -1, -1)
$hRichEdit = _GUICtrlRichEdit_Create($hGui, "Dies ist ein Test.", 10, 10, 300, 220, _
BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
$idBtnDoIt = GUICtrlCreateButton("Mache es", 10, 260, 90, 25)
GUISetState(@SW_SHOW)
While True
$iMsg = GUIGetMsg()
Select
Case $iMsg = $GUI_EVENT_CLOSE
GUIDelete() ; wird benötigt, da sonst das Skript abstürzt
Exit
Case $iMsg = $idBtnDoIt
_GUICtrlRichEdit_Destroy($hRichEdit)
EndSelect
WEnd
EndFunc ;==>Example