Retrieves information about the specified combo box.
Syntax
BOOL GetComboBoxInfo(
HWND hwndCombo,
PCOMBOBOXINFO pcbi
);
Parameters
- hwndCombo
-
[in] A handle to the combo box.
- pcbi
-
[out] A pointer to a COMBOBOXINFO structure that receives the information. You must set COMBOBOXINFO.cbSize before calling this function.
Return Value
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.
Example
The following example code retrieves information about the combo box specified by the window handle.
COMBOBOXINFO info = { sizeof(COMBOBOXINFO) };
GetComboBoxInfo(hwnd, &info);
Function Information
| Minimum DLL Version | user32.dll |
|---|
| Header | Declared in Winuser.h, include Windows.h |
|---|
| Import library | User32.lib |
|---|
| Minimum operating systems |
Windows 98, Windows NT 4.0 with Service Pack 6 |
|---|
See Also