Column management (list view in lvsDetail, lvsDetailNoHeader display modes)
LVColCount - the number of columns;
LVColAdd(s, textalign, i)- adds a column, setting the text alignment (left, right, center) and width for it. For automatic width control, pass a negative number as the width;
LVColAddW(s, textalign, i) - similar to the previous method, but working with a Unicode string;
LVColInsert(i, s, textalign, i1) and LVColInsertW (i, s, textalign, i1) - inserts a column at position i in the list of columns;
LVColDelete(i) - deletes the column with index i;
LVColWidth[i] - column width property;
LVColText[i] and LVColTextW [i] - column heading;
LVColAlign[i] - text alignment in the column;
LVColImage[i]- image (pictogram) for the column heading. If a number (greater than or equal to zero) is assigned, then the icon with that index from ImageListSmall is used;
LVColOrder[i]- the order of the columns does not have to coincide with the visual order of their display in the general list. This property sets the visual order of the column;
OnColumnClick - an event that is triggered when the mouse is clicked on the column header (lvsDetail view mode);
To analyze which mouse button was pressed in the OnColumnClick event on the header of the general list, you can use the property:
RightClick - returns true if the right mouse button was pressed.