title | description | ms.assetid | keywords | topic_type | api_name | api_location | api_type | ms.topic | ms.date | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CBEM_GETITEM message (Commctrl.h) |
Gets item information for a given ComboBoxEx item. |
2df07ae8-fa84-487c-a4a7-90244dfdb40e |
|
|
|
|
|
reference |
05/31/2018 |
Gets item information for a given ComboBoxEx item.
-
wParam
- Must be zero.
-
lParam
-
A pointer to a COMBOBOXEXITEM structure that receives the item information.
Returns nonzero if successful, or zero otherwise.
When the message is sent, the iItem and mask members of the structure must be set to indicate the index of the target item and the type of information to be retrieved. Other members are set as needed. For example, to retrieve text, you must set the CBEIF_TEXT flag in mask, and assign a value to cchTextMax. Setting the iItem member to -1 will retrieve the item displayed in the edit control.
If the CBEIF_TEXT flag is set in the mask member of the COMBOBOXEXITEM structure, the control may change the pszText member of the structure to point to the new text instead of filling the buffer with the requested text. Applications should not assume that the text will always be placed in the requested buffer.
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
Unicode and ANSI names |
CBEM_GETITEMW (Unicode) and CBEM_GETITEMA (ANSI) |