hWnd = WinXAddListView (parent, hilLargeIcons, hilSmallIcons, editable, view, id)
Creates a new list view control and adds it to a window
Parameter | Description |
---|---|
parent | The handle of the window to add the control to |
hilLargeIcons | The handle to the image list containing large icons or 0 for none |
hilSmallIcons | The handle to the image list containing small icons or 0 for none |
editable | $$TRUE to enable label edititing, $$FALSE otherwise |
view | The view to initialise the control with, see WinXListView_SetView |
id | The unique id constant for this control |
The handle to the new control or 0 on fail
To implement label editing you need to register an onLabelEdit callback.
The icons in hilLargeIcons and hilSmallIcons must match, i.e., the icon at index 0 of hilLargeIcons and index 0 of hilSmallIcons both represent the same icon except that one is large and one is small.
See WinXListView_SetView for a list of possible views.
$$ID_LV = 100 ... ' Create a listview control with label editing and no images |
List View Controls
WinXListView_SetView
WinXListView_AddColumn
WinXListView_AddItem
WinXListView_GetSelection
WinXListView_SetItemText