The nested class IBaseComboBox::Cursor defines objects that you can use to traverse through the items in a combination box. In the same way that you can use a cursor to traverse through the objects in a collection, you can use this cursor to traverse through a combination box, one item at a time.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~Cursor()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Cursor( const IBaseComboBox& comboBox, Filter type = selectedItems )
You can create objects of this class by using the combination box and a filter type.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to control cursor movement in the list box portion of a combination box.
![]() |
public:
virtual bool setToFirst()
Points to the first list box item and validates the cursor. If the cursor is set successfully, true is returned. Otherwise, false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool setToIndex(unsigned long index)
Points to the specified item and validates the cursor. If the cursor is set to the specified list box item, true is returned. Otherwise, false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool setToLast()
Points to the last list box item and validates the cursor. If the cursor is set successfully, true is returned. Otherwise, false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool setToNext()
Points to the next item in the list box. If the cursor is set to the next list box item, true is returned. If no more items exist, this function invalidates the cursor and false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool setToPrevious()
Points to the previous item in the list box. If the cursor is set to the previous list box item, true is returned. If no previous item exists, this function invalidates the cursor and false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to query or return information about the item to which the cursor is pointing.
![]() |
public:
virtual unsigned long asIndex() const
Returns the 0-based index of the item pointed to by the cursor.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void invalidate()
Flags the cursor as not valid.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual bool isValid() const
Returns a boolean depending on whether the cursor is pointing to a valid item. If the cursor is pointing to a valid item, true is returned. Otherwise, false is returned.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
enum Filter { selectedItems, allItems }
Use these enumerators to specify the filter for the combination box cursor:
Windows | OS/2 | AIX |
Yes | Yes | Yes |