#include <winstl/controls/combobox_sequence.hpp>
This class presents an STL-like sequence interface to a combo-box
S | The string type |
Member Types | |
typedef combobox_sequence< S > | class_type |
The current parameterisation of the type. | |
typedef listbox_const_iterator < S, combobox_operation_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 combo-box. | |
bool | empty () const |
Indicates whether the combo-box is empty. | |
static size_type | max_size () |
Returns the maximum number of items that the combo-box can contain. | |
Public Member Functions | |
Construction | |
combobox_sequence (HWND hwndComboBox) | |
Constructs from the given combo-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 combobox_sequence<S> class_type |
The current parameterisation of the type.
typedef listbox_const_iterator<S, combobox_operation_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.
combobox_sequence | ( | HWND | hwndComboBox | ) | [inline, explicit] |
Constructs from the given combo-box.
size_type size | ( | ) | const [inline] |
Returns the number of elements in the combo-box.
bool empty | ( | ) | const [inline] |
Indicates whether the combo-box is empty.
static size_type max_size | ( | ) | [inline, static] |
Returns the maximum number of items that the combo-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.