SECShortcutBar::CreateBarIterator
SECIterator<SECBar*>*SECShortcutBar::CreateBarIterator(void)
returns an iterator to use for traversal over the SECBar objects
Defined in: olbar.cpp
Return Value
returns a pointer to a SECIterator class that understandes SECBar* objects
Comments
The iterator returned from this function must be deleted. You may also use the SECIteratorPtr class that will automatically deallocate the iterator.
Example
Usage
SECIterator<SECBar*>* pIter = m_wndShortcutBar.CreateBarIterator();
//use pIter
delete pIter
SECIteratorPtr<SECBar*> pIter2 = m_wndShortcutBar.CreateBarIterator();
//use pIter2
//do nothing...when pIter2 goes out of scope will clean up appropriately