Struct winsafe::gui::ListView[][src]

pub struct ListView(_);
Expand description

Native list view control. Not to be confused with the simpler list box control.

Implements Child trait.

Implementations

Instantiates a new ListView object, to be created on the parent window with HWND::CreateWindowEx.

Instantiates a new ListView object, to be loaded from a dialog resource with HWND::GetDlgItem.

Note: The optional context_menu is shared: it must be destroyed manually after the control is destroyed. But note that menus loaded from resources don’t need to be destroyed.

Returns the underlying handle for this control.

Note: the handle is initially null, receiving an actual value only after the control is physically created, what usually happens right before WM_CREATE or WM_INITDIALOG events.

Returns the control ID.

Focuses the control by sending a wm::NextDlgCtl message.

Exposes the subclass events. If at least one event exists, the control will be subclassed.

Note: Subclassing may impact performance, use with care.

Panics

Panics if the control or the parent window are already created. Events must be set before control and parent window creation.

Exposes the control events.

These event methods are just proxies to the WindowEvents of the parent window, who is the real responsible for the child event handling.

Panics

Panics if the control or the parent window are already created. Events must be set before control and parent window creation.

Exposes the column methods.

Returns the context menu attached to this list view, if any.

The context menu is attached when the list view is created, either by calling ListView::new or ListView::new_dlg.

Retrieves one of the associated image lists by sending an lvm::GetImageList message.

Exposes the item methods.

Retrieves the current view by sending an lvm::GetView message.

Sets the current view by sending an lvm::SetView message.

Sets or unsets the given extended list view styles by sending an lvm::SetExtendedListViewStyle message.

Sets the one of the associated image lists by sending an lvm::SetImageList message.

Returns the previous image list, if any.

Allows or disallows the redrawing of the control by sending a wm::SetRedraw message.

Trait Implementations

Returns a reference to the HWND of the child control.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.