GetComboBoxInfo
The GetComboBoxInfo function retrieves information about the specified combo box.

BOOL GetComboBoxInfo(
HWND hwndCombo, // handle to combo box
PCOMBOBOXINFO pcbi // combo box information
);
Parameters
hwndCombo
[in] Handle to the combo box.
pcbi
[out] Pointer to a COMBOBOXINFO structure that receives the information.
COMBOBOXINFO
The COMBOBOXINFO structure contains combo box status information.

typedef struct tagCOMBOBOXINFO {
DWORD cbSize;
RECT rcItem;
RECT rcButton;
DWORD stateButton;
HWND hwndCombo;
HWND hwndItem;
HWND hwndList;
} COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO;
Members
cbSize
Specifies the size, in bytes, of the structure.
rcItem
A RECT structure that specifies the coordinates of the edit box.
rcButton
A RECT structure that specifies the coordinates of the button that contains the drop-down arrow.
stateButton
Specifies the combo box button state. This parameter can be one of the following values. Value Meaning
0 The button exists and is not pressed.
STATE_SYSTEM_INVISIBLE There is no button.
STATE_SYSTEM_PRESSED The button is pressed.


hwndCombo
Handle to the combo box.
hwndItem
Handle to the edit box.
hwndList
Handle to the drop-down list.