#include <winstl/controls/listbox_sequence.hpp>

This class presents an STL-like sequence interface to a list-box
| S | The string type |
Member Types | |
| typedef listbox_sequence< S > | class_type |
| The current parameterisation of the type. | |
| typedef listbox_const_iterator < S, listbox_sequence_traits > | const_iterator |
| The non-mutating (const) iterator type. | |
| typedef const_iterator::char_type | char_type |
| The character type. | |
| typedef const_iterator::value_type | value_type |
| The value type. | |
| typedef const_iterator::const_reference | const_reference |
| The non-mutable (const) reference type. | |
| typedef const_iterator::size_type | size_type |
| The size type. | |
| typedef const_iterator::difference_type | difference_type |
| The difference type. | |
| typedef const_iterator::allocator_type | allocator_type |
| The allocator type. | |
State | |
| size_type | size () const |
| Returns the number of elements in the list-box. | |
| bool | empty () const |
| Indicates whether the list-box is empty. | |
| static size_type | max_size () |
| Returns the maximum number of items that the list-box can contain. | |
Public Member Functions | |
Construction | |
| listbox_sequence (HWND hwndListBox) | |
| Constructs from the given list-box. | |
Iteration | |
| const_iterator | begin () const |
| Begins the iteration. | |
| const_iterator | end () const |
| Ends the iteration. | |
Element Access | |
| value_type | operator[] (difference_type index) const |
| Returns the item at the given index. | |
| typedef listbox_sequence<S> class_type |
The current parameterisation of the type.
| typedef listbox_const_iterator<S, listbox_sequence_traits> const_iterator |
The non-mutating (const) iterator type.
| typedef const_iterator::char_type char_type |
The character type.
| typedef const_iterator::value_type value_type |
The value type.
The non-mutable (const) reference type.
| typedef const_iterator::size_type size_type |
The size type.
The difference type.
The allocator type.
| listbox_sequence | ( | HWND | hwndListBox | ) | [inline, explicit] |
Constructs from the given list-box.
| size_type size | ( | ) | const [inline] |
Returns the number of elements in the list-box.
| bool empty | ( | ) | const [inline] |
Indicates whether the list-box is empty.
| static size_type max_size | ( | ) | [inline, static] |
Returns the maximum number of items that the list-box can contain.
| const_iterator begin | ( | ) | const [inline] |
Begins the iteration.
| const_iterator end | ( | ) | const [inline] |
Ends the iteration.
| value_type operator[] | ( | difference_type | index | ) | const [inline] |
Returns the item at the given index.
1.5.6