ImageCombo Control (Visual Basic 6)
The ImageCombo control is a picture-enabled version of the standard Windows combo box. Each item in the list portion of the control can have a picture assigned to it.
In addition to supporting pictures, the ImageCombo provides an object and collection-based list control. Each item in the list portion of the control is a distinct ComboItem object, and together the items in the list make up the ComboItems collection. This makes it easy to specify properties such as tag text, ToolTip text, key value, and level of indentation on an item-by-item basis.
With an ImageCombo control, you can display a list of items that includes pictures. Each item can have its own picture, or you can use the same picture for multiple list items.
The ImageCombo control contains a collection of ComboItem objects. A ComboItem object defines the various characteristics of an item that appears in the list portion of the control.
In addition to displaying pictures with list items, the ImageCombo control uses collections and objects to manage the list portion of the control. This makes it easy to manipulate entries in the list using familiar object and collection concepts, such as the Add, Remove, and Clear methods, and the For Each and With... End With constructions.
The ImageCombo control is part of a group of ActiveX controls that are found in the MSCOMCTL.ocx file. To use the ImageCombo control in your application, you must add the MSCOMCTL.ocx file to the project. When distributing your application, install the MSCOMCTL.ocx file in the user's Microsoft Windows System or System32 directory.
(TO CONTAINER IMPLEMENTORS) Containers that host this control must not replace the windows procedure for the control with GWL_WNDPROC, as would be the case with any other ActiveX control. Using GWL_WNDPROC will prevent the control from raising events.