Struct winsafe::gui::spec::ListBoxItems [−][src]
pub struct ListBoxItems<'a> { /* fields omitted */ }
Expand description
Exposes item methods of a ListBox
control.
You cannot directly instantiate this object, it is created internally by the control.
Implementations
Adds new texts by sending lb::AddString
messages.
Examples
ⓘ
use winsafe::ListBox;
let lst_names: ListBox; // initialized somewhere
lst_names.items().add(&["John", "Mary"]);
Retrieves the number of items by sending an
lb::GetCount
message.
Deletes the item at the given index by sending an
lb::DeleteString
message.
Deletes all items by sending an
lb::ResetContent
message.