Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2003.10.27;
Скачать: [xml.tar.bz2];

Вниз

Маленький вопросик по ListView...   Найти похожие ветки 

 
BillyJeans   (2003-10-14 13:59) [0]

Кто пользовал OnGetImageIndex, скажите почему код:
Item.StateIndex := Integer(Item.Checked);
в обработчике данного события вызывает постоянную перерисовку итемов?


 
clickmaker   (2003-10-14 14:09) [1]

Видимо потому, что для Checkbox"ов он и юзает этот StateIndex. Насколько я помню, это от версии comctl32.dll зависит


 
BillyJeans   (2003-10-14 14:23) [2]

тогда как же его юзать?


 
clickmaker   (2003-10-14 14:34) [3]

MSDN:

LVS_EX_CHECKBOXES

Version 4.70. Enables check boxes for items in a list-view control. When set to this style, the control creates and sets a state image list with two images using DrawFrameControl. State image 1 is the unchecked box, and state image 2 is the checked box. Setting the state image to zero removes the check box altogether.

Version 6.00 Check boxes are visible and functional with all list-view modes except the tile view mode introduced in ComCtl32.dll version 6. Clicking a checkbox in tile view mode only selects the item; the state does not change.
Note Comctl32.dll version 6 is not redistributable but it is included in Microsoft Windows XP or later. To use Comctl32.dll version 6, specify it in a manifest. For more information on manifests, see Using Windows XP Visual Styles.


 
BillyJeans   (2003-10-15 09:19) [4]

...the state does not change.

ИМХО никак???



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

Форум: "Основная";
Текущий архив: 2003.10.27;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.01 c
3-89129
Ser_ega
2003-10-07 22:47
2003.10.27
ser_ega


7-89583
Александр2030
2003-08-15 10:38
2003.10.27
Рабочий стол


14-89502
Zhouck
2003-10-09 14:07
2003.10.27
Fast Script


4-89651
DANTIST
2003-08-20 19:43
2003.10.27
Работа из Delphi с DLL на C++


1-89371
The X
2003-10-15 18:32
2003.10.27
Корректное масштабирование окон при изменении разрешения





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский