ListViewMessages Enumeration

The system sends or posts a system-defined message when it communicates with an application.

It uses these messages to control the operations of applications and to provide input and other information for applications to process.

An application can also send or post system-defined messages.

Applications generally use these messages to control the operation of control windows created by using preregistered window classes.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum ListViewMessages

Remarks

https://msdn.microsoft.com/en-us/library/windows/desktop/bb774937%28v=vs.85%29.aspx

The definitions can be found in the Windows SDK file: CommCtrl.h

Members

Null 0 The Null message performs no operation.

An application sends the Null message if it wants to post a message that the recipient window will ignore.

GetItemCount 4,100 Retrieves the number of items in a ListView control.

wParam Must be zero.

lParam Must be zero.

DeleteItem 4,104 Removes an item from a ListView control.

wParam The index of the ListViewItem to delete.

lParam Must be zero.

DeleteAllItems 4,105 Removes all items from a ListView control.

wParam Must be zero.

lParam Must be zero.

EnsureVisible 4,115 Ensures that a ListViewItem is either entirely or partially visible, scrolling the ListView control if necessary.

wParam The index of the ListViewItem.

lParam A value specifying whether the item must be entirely visible.

If this parameter is , no scrolling occurs if the item is at least partially visible.

Scroll 4,116 Scrolls the content of a ListView control.

wParam Value that specifies the amount of horizontal scrolling, in pixels, relative to the current position of the list view content.

If the list-view control is in list view, this value is rounded up to the nearest number of pixels that form a whole column.

lParam Value that specifies the amount of vertical scrolling, in pixels, relative to the current position of the list view content.

RedrawItems 4,117 Forces a ListView control to redraw a range of items.

wParam Index of the first item to redraw.

lParam Index of the last item to redraw.

DeleteColumn 4,124 Removes a ColumnHeader from a ListView control.

wParam The index of the column to delete

lParam Must be zero.

SetColumnWidth 4,126 Changes the width of a ColumnHeader in report-view mode or the width of all columns in list-view mode

wParam Zero-based index of a valid column.

For list-view mode, this parameter must be set to zero.

lParam New width of the column, in pixels.

GetHeader 4,127 Gets the handle to the header control used by a ListView control.

wParam Must be zero.

lParam Must be zero.

SortItems 4,144 Uses an application-defined comparison function to sort the items of a ListView control.

wParam Application-defined value that is passed to the comparison function.

lParam Pointer to the application-defined comparison function.

The comparison function is called during the sort operation each time the relative order of two list items needs to be compared.

SetView 4,238 Sets the view of a ListView control.

wParam A value that specifies the new view.

lParam Must be zero.

GetView 4,239 Retrieves the current view of a ListView control.

wParam Must be zero.

lParam Must be zero.

See Also