Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves information about the specified combo box.
BOOL GetComboBoxInfo(
[in] HWND hwndCombo,
[out] PCOMBOBOXINFO pcbi
);
[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.
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.
The CB_GETCOMBOBOXINFO message is equivalent to this function.
The following example code retrieves information about the combo box specified by the window handle.
COMBOBOXINFO info = { sizeof(COMBOBOXINFO) };
GetComboBoxInfo(hwnd, &info);
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) |
Reference
Please sign in to use this experience.
Sign in