### IToolBar::WindowCursor

  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.

### IToolBar::WindowCursor - Member Functions and Data by Group

### Constructors & Destructor

You 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.

~WindowCursor

      public:
      virtual ~WindowCursor()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

WindowCursor

      public:
      WindowCursor(const IToolBar* toolbar)

  Creates an IToolBar::WindowCursor to iterate over the windows that have been added to the specified toolbar.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Cursor Functions

Use these members to iterate over the windows that have been added to a tool bar.

invalidate

      public:
      virtual void invalidate()

  Invalidates the cursor.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

isValid

      public:
      virtual bool isValid() const

  Returns true if the cursor points to a valid window.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

setToFirst

      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.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

setToNext

      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.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IToolBar::WindowCursor - Inherited Member Functions and Data

#### Inherited Public Functions

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None