Create a report-mode list view as a child of parent.
Append a column with the given header title, pixel width and text alignment. Returns the new column's index.
Append a row. cells[0] is the main item text; cells[1 .. $] fill the subsequent columns. Returns the new row index, or -1 if cells is empty.
Size column col to fit its content (ColumnAutoSize.content) or its header text (ColumnAutoSize.header) — the equivalents of WinForms' -1 and -2 column widths.
Remove all rows (and release any retained item data; see setItemData).
Scroll the row at index into view.
Get the pixel width of column col.
Get the current left-to-right display order of the columns.
Return the number of rows.
Retrieve the user pointer associated with the row at index.
Return the text of the cell at the given row and col.
A sensible default size for a report-mode list.
Return the index of the selected row, or -1 if nothing is selected.
Route list-view selection and activation notifications to their events.
Turn WM_CONTEXTMENU into onContextMenu. The message is raised by a right-click and by the keyboard (Apps key / Shift+F10); the latter arrives with a position of (-1, -1), in which case the menu is anchored at the selected row so a keyboard user gets the menu where focus is.
Change the header text of column col (e.g. when the UI language changes).
Set the pixel width of column col. For autosizing, use autoSizeColumn.
Set the left-to-right display order of the columns.
Associate an opaque user pointer with the row at index.
Select (and focus) the row at index.
Fired when a context menu is requested, carrying the relevant row index (-1 if none) and the screen position to show the menu at. Raised both by a mouse right-click (row under the cursor) and by the keyboard — the Apps key or Shift+F10 — in which case the row is the selected one and the position is anchored to it. The screen coordinates can be passed to showPopupMenu.
Fired when a row is activated (double-click or Enter); argument is the row index.
Fired when the selected row changes; argument is the new selected index.
The control's command identifier (the hMenu child id at creation).
Set the control's text.
Get the control's text.
Assign a font to the control and request a repaint.
A reasonable default preferred size; override per control type.
Handle a WM_COMMAND notification routed from the parent.
Handle a WM_NOTIFY notification routed from the parent. Return true if it was handled. The default does nothing.
Install a subclass window procedure so the control can intercept its own messages (for example, swallowing the Enter key in a text field). Idempotent. Subclasses override processSubclassed to do the work.
Intercept a message while subclassed. Set result and return true to consume the message; return false to let default processing continue.
A native list view in report (details) mode.