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.


[view class]
~WindowCursor
public:
virtual ~WindowCursor()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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.


[view class]
invalidate
public:
virtual void invalidate()

Invalidates the cursor.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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


[view class]
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


[view class]
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

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data