Delete the control
#include <GuiTab.au3>
_GUICtrlTab_Destroy ( ByRef $hWnd )
$hWnd | Control ID/Handle to the control |
Success: | True, $hWnd is set to 0. |
Failure: | False. |
Restricted to only be used on Tab controls created with _GUICtrlTab_Create().
#include <GUIConstantsEx.au3>
#include <GuiTab.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
Local $hGUI, $hTab
; Create GUI
$hGUI = GUICreate("(UDF Created) Tab Control Destroy", 400, 300)
$hTab = _GUICtrlTab_Create($hGUI, 2, 2, 396, 296)
GUISetState(@SW_SHOW)
; Add tabs
_GUICtrlTab_InsertItem($hTab, 0, "Tab 1")
_GUICtrlTab_InsertItem($hTab, 1, "Tab 2")
_GUICtrlTab_InsertItem($hTab, 2, "Tab 3")
MsgBox($MB_SYSTEMMODAL, "Information", "Destroy Tab Control")
_GUICtrlTab_Destroy($hTab)
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example