The IToolBar::WindowCursor class creates and manages a cursor for iterating over the windows that have been added to a toolbar. Use this cursor rather than IWindow::ChildCursor to include windows that you added to that toolbar, but are filtered out due to misfit width.
Constructors & DestructorYou can construct and destruct objects of this class. You cannot copy or assign IToolBar::WindowCursor objects because both the copy constructor and assignment operator are private functions.
![]() |
public:
virtual ~WindowCursor()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
WindowCursor(const IToolBar* toolbar)
Creates an IToolBar::WindowCursor to iterate over the windows that have been added to the specified toolbar.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Cursor FunctionsUse these members to iterate over the windows that have been added to a tool bar.
![]() |
public:
virtual void invalidate()
Invalidates the cursor.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool isValid() const
Returns true if the cursor points to a valid window.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToFirst()
Initializes the cursor to point to the first window in the toolbar. Returns true if successful and false if there are no windows in the toolbar.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool setToNext()
Advances cursor to point to the next window in the toolbar. Returns true if successful and false if there are no more windows in the toolbar.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |