Rediger

Del via


ComboBoxEx Control

This section contains information about the programming elements used with ComboBoxEx controls.

Overviews

Topic Contents
About ComboBoxEx Controls ComboBoxEx controls are combo box controls that provide native support for item images.
Using ComboBoxEx Controls This section contains sample code and information about how to use ComboBoxEx controls.

Messages

Topic Contents
CBEM_DELETEITEM Removes an item from a ComboBoxEx control.
CBEM_GETCOMBOCONTROL Gets the handle to the child combo box control.
CBEM_GETEDITCONTROL Gets the handle to the edit control portion of a ComboBoxEx control. A ComboBoxEx control uses an edit box when it is set to the CBS_DROPDOWN style.
CBEM_GETEXTENDEDSTYLE Gets the extended styles that are in use for a ComboBoxEx control.
CBEM_GETIMAGELIST Gets the handle to an image list assigned to a ComboBoxEx control.
CBEM_GETITEM Gets item information for a given ComboBoxEx item.
CBEM_GETUNICODEFORMAT Gets the UNICODE character format flag for the control.
CBEM_HASEDITCHANGED Determines whether the user has changed the text of a ComboBoxEx edit control.
CBEM_INSERTITEM Inserts a new item in a ComboBoxEx control.
CBEM_KILLCOMBOFOCUS This message is not implemented.
CBEM_SETCOMBOFOCUS This message is not implemented.
CBEM_SETEXTENDEDSTYLE Sets extended styles within a ComboBoxEx control.
CBEM_SETIMAGELIST Sets an image list for a ComboBoxEx control.
CBEM_SETITEM Sets the attributes for an item in a ComboBoxEx control.
CBEM_SETUNICODEFORMAT Sets the UNICODE character format flag for the control. This message enables you to change the character set used by the control at run time rather than having to re-create the control.
CBEM_SETWINDOWTHEME Sets the visual style of a ComboBoxEx control.

Notifications

Topic Contents
CBEN_BEGINEDIT Sent when the user activates the drop-down list or clicks in the control's edit box. This notification code is sent in the form of a WM_NOTIFY message.
CBEN_DELETEITEM Sent when an item has been deleted. This notification code is sent in the form of a WM_NOTIFY message.
CBEN_DRAGBEGIN Sent when the user begins dragging the image of the item displayed in the edit portion of the control. This notification code is sent in the form of a WM_NOTIFY message.
CBEN_ENDEDIT Sent when the user has concluded an operation within the edit box or has selected an item from the control's drop-down list. This notification code is sent in the form of a WM_NOTIFY message.
CBEN_GETDISPINFO Sent to retrieve display information about a callback item. This notification code is sent in the form of a WM_NOTIFY message.
CBEN_INSERTITEM Sent when a new item has been inserted in the control. This notification code is sent in the form of a WM_NOTIFY message.
NM_SETCURSOR (ComboBoxEx) Notifies a ComboBoxEx control's parent window that the control is setting the cursor in response to a WM_SETCURSOR message. This notification code is sent in the form of a WM_NOTIFY message.

Structures

Topic Contents
COMBOBOXEXITEM Contains information about an item in a ComboBoxEx control.
NMCBEDRAGBEGIN Contains information used with the CBEN_DRAGBEGIN notification code.
NMCBEENDEDIT Contains information about the conclusion of an edit operation within a ComboBoxEx control. This structure is used with the CBEN_ENDEDIT notification code.
NMCOMBOBOXEX Contains information specific to ComboBoxEx items for use with notification codes.

Constants

Topic Contents
ComboBoxEx Control Extended Styles Support the extended styles that are listed in this section as well as most standard combo box control styles.