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.

Retrieves the width of the column by sending an lvm::GetColumnWidth message.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.