![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
TListView. Columns не меняет ширину при изменении текста [D7, WinXP]
MishaL © (2006-10-25 22:18:00)TListView. Columns AutoSize=True не меняет ширину в соответствии с отражаемым текстом
MaxWidth=1000 MinWidth=100
что надо настроить?
заранее спасибо
MetalFan (2006-10-26 09:16:00) [1]CommCtrl
The ListView_SetColumnWidth macro changes the width of a column in report or list view. You can use this macro or explicitly send the LVM_SETCOLUMNWIDTH message.
BOOL ListView_SetColumnWidth(
HWND hwnd,
int iCol,
int cx
);
Parameters
hwnd
Handle to the list view control.
iCol
Index of the column. In list view, the iCol parameter must be -1.
cx
New width of the column, in list view coordinates, or one of the following values:
Value Meaning
LVSCW_AUTOSIZE Automatically sizes the column.
LVSCW_AUTOSIZE_USEHEADER Automatically sizes the column to fit the header text.
может поможет?
Palladin (2006-10-26 06:49:00) [2]ничего, обрабатывать изменение текста и выставлять ширину колонки нужно в ручную