Help Center

CComboEx.GetTextmethod

Retrieves the text in a combobox control.

WindowsmethodCCombo.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION GetText (BYVAL hCombo AS HWND) AS DWSTRING
FUNCTION GetText (BYVAL hCombo AS HWND, BYVAL index AS LONG) AS DWSTRING

Parameters

NameDescription
hComboThe handle of the combo box control.
indexThe zero-based index of the item.

Description

Retrieves the text of the edit control in a combobox or the text of an item in the list.

Example

DIM dwsText AS DWSTRING = CCombo.GetText(hCombo) DIM dwsText AS DWSTRING = CCombo.GetText(hCombo, 5)

Reference

  • Include file CCombo.inc
  • Documented in Windows/WIndows Controls/CCombo Class.md
  • Topic: CCombo Class