GetComboBoxInfo function

Retrieves information about the specified combo box.

Syntax


BOOL GetComboBoxInfo(
  _In_   HWND hwndCombo,
  _Out_  PCOMBOBOXINFO pcbi
);

Parameters

hwndCombo [in]

Type: HWND

A handle to the combo box.

pcbi [out]

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 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Service Pack 6

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
CB_GETCOMBOBOXINFO
COMBOBOXINFO
GetListBoxInfo

 

 

Community Additions

ADD
Show:
© 2014 Microsoft