CComboBoxEx

Win32++

CComboBoxEx Class

Description

The CComboBoxEx class is used to create and manage a ComboBoxEx control. ComboBoxEx controls are an extension of the combo box control that provides native support for item images.

Refer to the documentation that ships with the Microsoft Windows Software Development Kit for more information on the use of ComboBoxEx controls.

CComboBoxEx Members

CComboBoxEx
CComboBoxEx();
Constructor for the ComboBoxEx.
DeleteItem
int DeleteItem(int nIndex ) const;
Removes an item.
GetComboBoxCtrl
HWND GetComboBoxCtrl() const;
Retrieves the handle to the child combo box control.
GetEditCtrl
HWND GetEditCtrl() const;
Retrieves the handle to the edit control portion of a ComboBoxEx control.
GetExtendedStyle
DWORD GetExtendedStyle() const;
Retrieves the extended style that are in use for a ComboBoxEx control.
GetImageList
CImageList* GetImageList() const;
Retrieves the handle to the image list assigned to the ComboBoxEx control.
GetItem
BOOL GetItem(COMBOBOXEXITEM* pCBItem) const;
Retrieves item information for a given ComboBoxEx item.
HasEditChanged
BOOL HasEditChanged () const;
Returns TRUE if the user has changed text of the ComboBoxEx edit control.
InsertItem
int InsertItem(COMBOBOXEXITEM* lpcCBItem) const;
Inserts a new item in the ComboBoxEx control.
SetExtendedStyle
DWORD SetExtendedStyle(DWORD dwExMask, DWORD dwExStyles ) const;
Sets the extend styles for the ComboBoxEx controls.
SetImageList
CImageList* SetImageList(CImageList* pNew) const;
Sets the image list for the ComboBoxEx control.
SetItem
BOOL SetItem(PCOMBOBOXEXITEM lpcCBItem) const;
Sets the attributes for an item of the ComboBoxEx control.

Overridables

PreRegisterClass
virtual void PreRegisterClass(WNDCLASS &wc);
Set the window class parameters before the window is created.
Base class Members

For base class members, refer to the members of CWnd.

Remarks

Like all common controls, the ComboBoxEx control requires a parent window. This parent window is often a dialog, but simple windows can also be the parent window for a ComboBoxEx control.

Summary Information

Header file controls.h
Win32/64 support Yes
WinCE support Yes