﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2301	_GUICtrlComboBox_GetEditControl for standard combobox	funkey		"Maybe this is helpful, because ComboBoxEx has the same function

{{{
#include <GuiComboBox.au3>

GUICreate(""Combobox Edit control"")
GUICtrlCreateCombo(""edit"", 10, 10, 100, 100)

ConsoleWrite(""Handle Edit: "" & _GuiCtrl_GetInternalCtrl(-1) & @CRLF)
ConsoleWrite(""Handle Edit: "" & _GUICtrlComboBox_GetEditControl(GUICtrlGetHandle(-1)) & @CRLF)

GUISetState()
Do
Until GUIGetMsg() = -3


Func _GuiCtrl_GetInternalCtrl($_hCtrl)
	If Not IsHWnd($_hCtrl) Then $_hCtrl = GUICtrlGetHandle($_hCtrl)
	Local $aResult = DllCall(""user32.dll"", ""hwnd"", ""GetWindow"", ""hwnd"", $_hCtrl, ""uint"", 5) ; 5 = $GW_CHILD
	Return $aResult[0]
EndFunc   ;==>_GuiCtrl_GetInternalCtrl

; #FUNCTION# ====================================================================================================================
; Name...........: _GUICtrlComboBox_GetEditControl
; Description ...: Gets the handle to the edit control portion of a ComboBox control
; Syntax.........: _GUICtrlComboBox_GetEditControl($hWnd)
; Parameters ....: $hWnd        - Handle to the control
; Return values .: Success      - The handle to the edit control within the ComboBoxEx control if it uses the $CBS_DROPDOWN style
; Author ........: funkey
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........:
; Example .......: Yes
; ===============================================================================================================================
Func _GUICtrlComboBox_GetEditControl($hWnd)
	If $Debug_CB Then __UDF_ValidateClassName($hWnd, $__COMBOBOXCONSTANT_ClassName)
	If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)

	Local $tInfo
	If _GUICtrlComboBox_GetComboBoxInfo($hWnd, $tInfo) Then
		Return DllStructGetData($tInfo, ""hEdit"")
	Else
		Return SetError(1, 0, 0)
	EndIf
EndFunc   ;==>_GUICtrlComboBox_GetEditControl
}}}"	Feature Request	closed		Standard UDFs		None	Rejected		
