List View Control Messages

An application sends messages to a list view control to alter its appearance, add or change items and columns, and so on. Each message has a corresponding macro that you can use instead of sending the message explicitly.

Message Corresponding Macro
LVM_ARRANGE ListView_Arrange
LVM_CREATEDRAGIMAGE ListView_CreateDragImage
LVM_DELETEALLITEMS ListView_DeleteAllItems
LVM_DELETECOLUMN ListView_DeleteColumn
LVM_DELETEITEM ListView_DeleteItem
LVM_EDITLABEL ListView_EditLabel
LVM_ENSUREVISIBLE ListView_EnsureVisible
LVM_FINDITEM ListView_FindItem
LVM_GETBKCOLOR ListView_GetBkColor
LVM_GETCALLBACKMASK ListView_GetCallbackMask
LVM_GETCOLUMN ListView_GetColumn
LVM_GETCOLUMNWIDTH ListView_GetColumnWidth
LVM_GETCOUNTPERPAGE ListView_GetCountPerPage
LVM_GETEDITCONTROL ListView_GetEditControl
LVM_GETIMAGELIST ListView_GetImageList
LVM_GETISEARCHSTRING ListView_GetISearchString
LVM_GETITEM ListView_GetItem
LVM_GETITEMCOUNT ListView_GetItemCount
LVM_GETITEMPOSITION ListView_GetItemPosition
LVM_GETITEMRECT ListView_GetItemRect
LVM_GETITEMSPACING ListView_GetItemSpacing
LVM_GETITEMSTATE ListView_GetItemState
LVM_GETITEMTEXT ListView_GetItemText
LVM_GETNEXTITEM ListView_GetNextItem
LVM_GETORIGIN ListView_GetOrigin
LVM_GETSELECTEDCOUNT ListView_GetSelectedCount
LVM_GETSTRINGWIDTH ListView_GetStringWidth
LVM_GETTEXTBKCOLOR ListView_GetTextBkColor
LVM_GETTEXTCOLOR ListView_GetTextColor
LVM_GETTOPINDEX ListView_GetTopIndex
LVM_GETVIEWRECT ListView_GetViewRect
LVM_HITTEST ListView_HitTest
LVM_INSERTCOLUMN ListView_InsertColumn
LVM_INSERTITEM ListView_InsertItem
LVM_REDRAWITEMS ListView_RedrawItems
LVM_SCROLL ListView_Scroll
LVM_SETBKCOLOR ListView_SetBkColor
LVM_SETCALLBACKMASK ListView_SetCallbackMask
LVM_SETCOLUMN ListView_SetColumn
LVM_SETCOLUMNWIDTH ListView_SetColumnWidth
LVM_SETIMAGELIST ListView_SetImageList
LVM_SETITEM ListView_SetItem
LVM_SETITEMCOUNT ListView_SetItemCount
LVM_SETITEMPOSITION ListView_SetItemPosition
LVM_SETITEMPOSITION32 ListView_SetItemPosition32
LVM_SETITEMSTATE ListView_SetItemState
LVM_SETITEMTEXT ListView_SetItemText
LVM_SETTEXTBKCOLOR ListView_SetTextBkColor
LVM_SETTEXTCOLOR ListView_SetTextColor
LVM_SORTITEMS ListView_SortItems
LVM_UPDATE ListView_Update