GetComboBoxInfo function

Retrieves information about the specified combo box.

Syntax

BOOL GetComboBoxInfo(
  HWND          hwndCombo,
  PCOMBOBOXINFO pcbi
);

Parameters

hwndCombo

Type: HWND

A handle to the combo box.

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

   
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

See Also

CB_GETCOMBOBOXINFO

COMBOBOXINFO

GetListBoxInfo

Reference