Construction Methods
| Method | Description |
|---|---|
| ListCtrl | Constructs a CListCtrl object. |
| Create | Creates a list control and attaches it to a CListCtrl object. |
Attributes Methods
| Method | Description |
|---|---|
| GetBkColor | Retrieves the background color of a list view control. |
| SetBkColor | Sets the background color of the list view control. |
| GetImageList | Retrieves the handle to an image list used for drawing list view items. |
| SetImageList | Assigns an image list to a list view control. |
| GetItemCount | Retrieves the number of items in a list view control. |
| GetItem | Retrieves a list view item’s attributes. |
| GetItemData | Retrieves the application-specific value associated with an item. |
| SetItem | Sets some or all of a list view item’s attributes. |
| SetItemData | Sets the item’s application-specific value. |
| GetCallbackMask | Retrieves the callback mask for a list view control. |
| SetCallbackMask | Sets the callback mask for a list view control. |
| GetNextItem | Searches for a list view item with specified properties and with specified relationship to a specified item. |
| GetItemRect | Retrieves the bounding rectangle for an item. |
| SetItemPosition | Moves an item to a specified position in a list view control. |
| GetItemPosition | Retrieves the position of a list view item. |
| GetStringWidth | Determines the minimum column width necessary to display all of a specified string. |
| GetEditControl | Retrieves the handle to the edit control used to edit an item’s text. |
| GetColumn | Retrieves the attributes of a control’s column. |
| SetColumn | Sets the attributes of a list view column. |
| GetColumnWidth | Retrieves the width of a column in report view or list view. |
| SetColumnWidth | Changes the width of a column in report view or list view. |
| GetViewRect | Retrieves the bounding rectangle of all items in the list view control. |
| GetTextColor | Retrieves the text color of a list view control. |
| SetTextColor | Sets the text color of a list view control. |
| GetTextBkColor | Retrieves the text background color of a list view control. |
| SetTextBkColor | Sets the background color of text in a list view control. |
| GetTopIndex | Retrieves the index of the topmost visible item. |
| GetCountPerPage | Calculates the number of items that can fit vertically in a list view control. |
| GetOrigin | Retrieves the current view origin for a list view control. |
| SetItemState | Changes the state of an item in a list view control. |
| GetItemState | Retrieves the state of a list view item. |
| GetItemText | Retrieves the text of a list view item or subitem. |
| SetItemText | Changes the text of a list view item or subitem. |
| SetItemCount | Prepares a list view control for adding a large number of items. |
| GetSelectedCount | Retrieves the number of selected items in the list view control. |
Operations Methods
| Method | Description |
|---|---|
| InsertItem | Inserts a new item in a list view control. |
| DeleteItem | Deletes an item from the control. |
| DeleteAllItems | Deletes all items from the control. |
| FindItem | Searches for a list view item having specified characteristics. |
| SortItems | Sorts list view items using an application-defined comparison function. |
| HitTest | Determines which list view item is at a specified position. |
| EnsureVisible | Ensures that an item is visible. |
| Scroll | Scrolls the content of a list view control. |
| RedrawItems | Forces a list view control to repaint a range of items. |
| Update | Forces the control to repaint a specified item. |
| Arrange | Aligns items on a grid. |
| EditLabel | Begins in-place editing of an item’s text. |
| InsertColumn | Inserts a new column in a list view control. |
| DeleteColumn | Deletes a column from the list view control. |
Overridable Methods
| Method | Description |
|---|---|
| DrawItem | Called when a visual aspect of an owner-draw control changes. |