Struct winsafe::gui::events::ListViewEvents[][src]

pub struct ListViewEvents { /* fields omitted */ }
Expand description

Exposes list view control notifications.

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

You cannot directly instantiate this object, it is created internally by the control.

Implementations

LVN_BEGINDRAG notification.

Notifies that a drag-and-drop operation involving the left mouse button is being initiated.

LVN_BEGINLABELEDIT notification.

Notifies about the start of label editing for an item.

LVN_BEGINRDRAG notification.

Notifies that a drag-and-drop operation involving the right mouse button is being initiated.

LVN_BEGINSCROLL notification.

Notifies when a scrolling operation starts.

LVN_COLUMNCLICK notification.

Notifies that a column header was clicked while the list-view control was in report mode.

LVN_COLUMNDROPDOWN notification.

Sent by a list-view control when the list-view’s drop-down button is pressed.

LVN_COLUMNOVERFLOWCLICK notification.

Sent by a list-view control when its overflow button is clicked.

LVN_DELETEALLITEMS notification.

Notifies that all items in the control are about to be deleted.

LVN_DELETEITEM notification.

Notifies that an item is about to be deleted.

Examples

use winsafe::{gui, BoxResult, NMLISTVIEW};

let list: gui::ListView; // initialized somewhere

list.on().lvn_delete_item(|p: &NMLISTVIEW| -> BoxResult<()> {
    println!("Item: {}", p.iItem);
    Ok(())
});

LVN_ENDLABELEDIT notification.

Notifies about the end of label editing for an item.

LVN_ENDSCROLL notification.

Notifies when a scrolling operation ends.

LVN_GETDISPINFO notification.

It is a request to provide information needed to display or sort a list-view item.

LVN_GETEMPTYMARKUP notification.

Sent by list-view control when the control has no items. The notification code is a request for the parent window to provide markup text.

LVN_GETINFOTIP notification.

Sent by a large icon view list-view control that has the LVS_EX_INFOTIP extended style. This notification code is sent when the list-view control is requesting additional text information to be displayed in a tooltip.

LVN_HOTTRACK notification.

Sent by a list-view control when the user moves the mouse over an item. This notification code is only sent by list-view controls that have the LVS_EX_TRACKSELECT extended list-view style.

LVN_INCREMENTALSEARCH notification.

Notifies that an incremental search has started.

LVN_INSERTITEM notification.

Notifies that a new item was inserted.

LVN_ITEMACTIVATE notification.

Sent by a list-view control when the user activates an item.

LVN_ITEMCHANGED notification.

Notifies that an item has changed.

Examples

use winsafe::{gui, BoxResult, NMLISTVIEW};

let list: gui::ListView; // initialized somewhere

list.on().lvn_item_changed(|p: &NMLISTVIEW| -> BoxResult<()> {
    println!("Item: {}", p.iItem);
    Ok(())
});

LVN_ITEMCHANGING notification.

Notifies that an item is changing.

LVN_KEYDOWN notification.

Notifies that a key has been pressed.

Examples

use winsafe::{gui, BoxResult, NMLVKEYDOWN};

let list: gui::ListView; // initialized somewhere

list.on().lvn_delete_item(|p: &NMLVKEYDOWN| -> BoxResult<()> {
    if p.wVKey == co::VK::DELETE {
        println!("DEL key was pressed.");
    }
    Ok(())
});

LVN_LINKCLICK notification.

Notifies that a link has been clicked on.

LVN_MARQUEEBEGIN notification.

Notifies that a bounding box (marquee) selection has begun.

LVN_ODCACHEHINT notification.

Sent by a virtual list-view control when the contents of its display area have changed. For example, a list-view control sends this notification code when the user scrolls the control’s display.

LVN_ODFINDITEM notification.

Sent by a virtual list-view control when it needs the owner to find a particular callback item. For example, the control will send this notification code when it receives shortcut keyboard input or when it receives an lvm::FindItem message.

LVN_ODSTATECHANGED notification.

Sent by a list-view control when the state of an item or range of items has changed.

LVN_SETDISPINFO notification.

Notifies that you must update the information it maintains for an item.

NM_CLICK notification.

Sent by a list-view control when the user clicks an item with the left mouse button.

NM_CUSTOMDRAW notification.

Sent by a list-view control to notify about drawing operations.

NM_DBLCLK notification.

Sent by a list-view control when the user double-clicks an item with the left mouse button.

NM_HOVER notification.

Sent by a list-view control when the mouse hovers over an item.

NM_KILLFOCUS notification.

Notifies that the control has lost the input focus.

NM_RCLICK notification.

Sent by a list-view control when the user clicks an item with the right mouse button.

NM_RDBLCLK notification.

Sent by a list-view control when the user double-clicks an item with the right mouse button.

NM_RELEASEDCAPTURE notification.

Notifies that the control is releasing mouse capture.

NM_RETURN notification.

Notifies that the control has the input focus and that the user has pressed the ENTER key.

NM_SETFOCUS notification.

Notifies that the control has received the input focus.

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.