Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.02 c
1-1087313747
SPArk
2004-06-15 19:35
2004.07.04
Эмуляция нажатий кнопки мыши


1-1087743994
AlexG
2004-06-20 19:06
2004.07.04
Пересылка текста через Clipboard


8-1080640978
Dysan
2004-03-30 14:02
2004.07.04
как проиграть avi из ресурса


1-1087451527
P@vel
2004-06-17 09:52
2004.07.04
Window Handle


3-1086611490
Smalik
2004-06-07 16:31
2004.07.04
Не сохраняется измененный набор данных




   Наверх