![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Listview style vsList [D7, WinXP]
AndrewVolkov © (2004-06-16 01:10:00)Доброго вечера.
Столкнулся с проблемой.
имеем ListView и у него стиль vsList.
Как можно поменять ширину столбцов при отображении инфы.
listView.Column[0].Width=100;
Это не подходит, так как этои столбцы существуют только при стиле vsReport
AndrewVolkov (2004-06-16 01:32:00) [1]Фух, на MSDN нашел. Если кому интересно
в USESдобавляем
commctrl
и шлем
listView.Perform(LVM_SETCOLUMNWIDTH,0,300);
где
iCol
Zero-based index of a valid column. For list-view mode, this parameter must be set to zero.
cx
New width of the column, in pixels. For report-view mode, the following special values are supported:
LVSCW_AUTOSIZE
Automatically sizes the column.
LVSCW_AUTOSIZE_USEHEADER
Automatically sizes the column to fit the header text. If you use this value with the last column, its width is set to fill the remaining width of the list-view control.