Ermittelt, falls vorhanden, das Handle zu dem ToolTip-Control, welches zum Slider gehört
#include <GuiSlider.au3>
_GUICtrlSlider_GetToolTips ( $hWnd )
| $hWnd | Control-ID / Handle des Controls |
| Erfolg: | das Handle des ToolTip-Control, welches zum Slider gehört |
| Fehler: | 0 |
Falls das Slider-Control den Stil $TBS_TOOLTIPS nicht verwendet, ist der Rückgabewert 0.
- - - - - - - - Erklärung der Controls - - - - - - - -
#include <GUIConstantsEx.au3>
#include <GuiSlider.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
; Erstellt eine GUI
GUICreate("Slider: Setzt und ermittelt das Handle zum ToolTip-Control (v" & @AutoItVersion & ")", 600, 296)
Local $idSlider = GUICtrlCreateSlider(2, 2, 396, 20, BitOR($TBS_TOOLTIPS, $TBS_AUTOTICKS, $TBS_ENABLESELRANGE))
GUISetState(@SW_SHOW)
; Ermittelt das Handle zum ToolTip-Control
Local $hWndTT = _GUICtrlSlider_GetToolTips($idSlider)
MsgBox($MB_SYSTEMMODAL, "Information", "Handle des ToolTips: " & $hWndTT)
; Weist dem Slider-Control ein ToolTip-Control zu
_GUICtrlSlider_SetToolTips($idSlider, $hWndTT)
; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example