Struct winsafe::gui::spec::ListViewColumns [−][src]
pub struct ListViewColumns<'a> { /* fields omitted */ }
Expand description
Exposes column methods of a ListView
control.
You cannot directly instantiate this object, it is created internally by the control.
Implementations
Adds many columns at once by sending an
lvm::InsertColumn
message.
Widths will be adjusted to match current system DPI.
Examples
use winsafe::gui;
let my_list: gui::ListView; // initialized somewhere
my_list.columns().add(&[
("Name", 300),
("Address", 500),
])?;
Retrieves the number of columns by sending an
hdm::GetItemCount
message to the
handle returned by lvm::GetHeader
.
Retrieves information about the column by sending an
lvm::GetColumn
message.
Sets information of the column by sending an
lvm::SetColumn
message.
Sets the title of the column by calling
set_info
.
Sets the width of the column by sending an
lvm::SetColumnWidth
message.
Width will be adjusted to match current system DPI.
Sets the width of the column by sending an
lvm::SetColumnWidth
message. The
width will be calculated to fill the remaining space.
Retrieves the title of the column by calling
info
.