Funktionreferenz


_GUICtrlComboBoxEx_GetDroppedControlRectEx

Beschreibung anzeigen in

Ermittelt die Bildschirmkoordinaten einer Combobox in seinem aufgeklappten Zustand

#include <GuiComboBoxEx.au3>
_GUICtrlComboBoxEx_GetDroppedControlRectEx ( $hWnd )

Parameter

$hWnd Handle des Controls

Rückgabewert

Gibt eine $tagRECT Struktur welche die Bildschirmkoordinaten enthält zurück.

Bemerkungen

- - - - - - - - Erklärung der Controls - - - - - - - -

Verwandte Funktionen

$tagRECT, _GUICtrlComboBoxEx_GetDroppedControlRect

Beispiel

#include <GuiComboBoxEx.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
    Local $hGui, $tRECT, $hCombo

    ; Erstellt eine GUI
    $hGui = GUICreate("ComboBoxEx: Ermittelt die Bildschirmkoordinaten in seinem aufgeklappten Zustand", 650, 300)
    $hCombo = _GUICtrlComboBoxEx_Create($hGui, "", 2, 2, 394, 100)
    GUISetState(@SW_SHOW)

    ; Fügt Dateien hinzu
    _GUICtrlComboBoxEx_BeginUpdate($hCombo)
    _GUICtrlComboBoxEx_AddDir($hCombo, "", $DDL_DRIVES, False)
    _GUICtrlComboBoxEx_AddDir($hCombo, "", $DDL_DRIVES)
    _GUICtrlComboBoxEx_BeginUpdate($hCombo)
    _GUICtrlComboBoxEx_AddDir($hCombo, @WindowsDir & "\*.exe")
    _GUICtrlComboBoxEx_EndUpdate($hCombo)
    _GUICtrlComboBoxEx_EndUpdate($hCombo)

    ; Ermittelt die Bildschirmkoordinaten in seinem aufgeklappten Zustand
    $tRECT = _GUICtrlComboBoxEx_GetDroppedControlRectEx($hCombo)
    MsgBox($MB_SYSTEMMODAL, "Information", "Bildschirmkoordinaten: " & _
            StringFormat("[%d][%d][%d][%d]", DllStructGetData($tRECT, "Left"), DllStructGetData($tRECT, "Top"), _
            DllStructGetData($tRECT, "Right"), DllStructGetData($tRECT, "Bottom")))

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example