[autoit]
ControlGetPos()
[/autoit]Würd ich mal sagen. ![]()
Edit:
[autoit]; Übergib ein Array, mit allen Controls, die in der GUI sind.
; $ctrl[0] = Anzahl der Controls
; $ctrl[1] = Control 1
; $ctrl[2] = Control 2
; $ctrl[n] = Control n
; x, y, width, height müsste klar sein
Func _CtrlDel($gui, $ctrl, $x, $y, $width, $height)
Local $pos
For $i = 1 To $ctrl[0] Step + 1
$pos = ControlGetPos($gui, "", $ctrl[$i])
If $pos[0] > $X And $pos[0] < $width And $pos[1] > $Y And $pos[1] < $Height Then
GUICtrlDelete($ctrl[$i])
EndIf
Next
Endfunc
Habs jetzt nicht getestet! Nur mal so schnell geschrieben.