Modifier

Partager via


ComboBoxEx Control Extended Styles

Support the extended styles that are listed in this section as well as most standard combo box control styles.

Constant Description
CBES_EX_CASESENSITIVE
BSTR searches in the list will be case sensitive. This includes searches as a result of text being typed in the edit box and the CB_FINDSTRINGEXACT message.
CBES_EX_NOEDITIMAGE
The edit box and the dropdown list will not display item images.
CBES_EX_NOEDITIMAGEINDENT
The edit box and the dropdown list will not display item images.
CBES_EX_NOSIZELIMIT
Allows the ComboBoxEx control to be vertically sized smaller than its contained combo box control. If the ComboBoxEx is sized smaller than the combo box, the combo box will be clipped.
CBES_EX_PATHWORDBREAKPROC
Windows NT only. The edit box will use the slash (/), backslash (\), and period (.) characters as word delimiters. This makes keyboard shortcuts for word-by-word cursor movement effective in path names and URLs.
CBES_EX_TEXTENDELLIPSIS
Windows Vista and later. Causes items in the drop-down list and the edit box (when the edit box is read only) to be truncated with an ellipsis ("...") rather than just clipped by the edge of the control. This is useful when the control needs to be set to a fixed width, yet the entries in the list may be long.

Remarks

You set and retrieve the combobox extended styles by using CBEM_SETEXTENDEDSTYLE and CBEM_GETEXTENDEDSTYLE messages.

Note

If you try to set an extended style for a ComboBoxEx control created with the CBS_SIMPLE style, it might not repaint properly. The CBS_SIMPLE style also does not work properly with the CBES_EX_PATHWORDBREAKPROC extended style.

Requirements

Requirement Value
Header
CommCtrl.h