Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.07.04;
Скачать: CL | DM;

Вниз

Listview style vsList   Найти похожие ветки 

 
AndrewVolkov   (2004-06-16 01:10) [0]

Доброго вечера.
Столкнулся с проблемой.
имеем ListView и у него стиль vsList.
Как можно поменять ширину столбцов при отображении инфы.

 listView.Column[0].Width=100;

Это не подходит, так как этои столбцы существуют только при стиле vsReport


 
AndrewVolkov   (2004-06-16 01:32) [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.



Страницы: 1 вся ветка

Текущий архив: 2004.07.04;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.043 c
14-1087062636
Vit@ly
2004-06-12 21:50
2004.07.04
Клавиша TAB


14-1087429736
Гарри Поттер
2004-06-17 03:48
2004.07.04
средство передвижения


14-1086983536
Godlike
2004-06-11 23:52
2004.07.04
Game Muonline


1-1087889921
d_oleg
2004-06-22 11:38
2004.07.04
Создание библиотеки ресурсов


6-1081291796
LanCoder
2004-04-07 02:49
2004.07.04
Отправка почты с помощью winsock