D�termine si un point est dans un contr�le � onglet
#include <GuiTab.au3>
_GUICtrlTab_HitTest ( $hWnd, $iX, $iY )
$hWnd | ID/handle du contr�le Tab |
$iX | Abscisse X du point � tester |
$iY | Ordonn�e Y du point � tester |
#include <GUIConstantsEx.au3> #include <GuiTab.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $aHit, $idTab ; Cr�e une GUI GUICreate("Tab Control HitTest", 400, 300) $idTab = GUICtrlCreateTab(2, 2, 396, 296) GUISetState(@SW_SHOW) ; Ajoute des onglets _GUICtrlTab_InsertItem($idTab, 0, "Tab 1") _GUICtrlTab_InsertItem($idTab, 1, "Tab 2") _GUICtrlTab_InsertItem($idTab, 2, "Tab 3") ; Fait un test de positionnement $aHit = _GUICtrlTab_HitTest($idTab, 80, 10) MsgBox($MB_SYSTEMMODAL, "Information", "Point [80,10] is over tab " & $aHit[0]) ; Boucle jusqu'� ce que l'utilisateur quitte. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example