GetComboBoxInfo function (winuser.h)

Retrieves information about the specified combo box.

Syntax

BOOL GetComboBoxInfo(
  [in]  HWND          hwndCombo,
  [out] PCOMBOBOXINFO pcbi
);

Parameters

[in] hwndCombo

Type: HWND

A handle to the combo box.

[out] pcbi

Type: PCOMBOBOXINFO

A pointer to a COMBOBOXINFO structure that receives the information. You must set COMBOBOXINFO.cbSize before calling this function.

Return value

Type: BOOL

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The CB_GETCOMBOBOXINFO message is equivalent to this function.

Examples

The following example code retrieves information about the combo box specified by the window handle.

COMBOBOXINFO info = { sizeof(COMBOBOXINFO) };
GetComboBoxInfo(hwnd, &info);

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll
Redistributable Service Pack 6
API set ext-ms-win-ntuser-dialogbox-l1-1-2 (introduced in Windows 10, version 10.0.10240)

See also

CB_GETCOMBOBOXINFO

COMBOBOXINFO

GetListBoxInfo

Reference