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

Вниз

KolListBox   Найти похожие ветки 

 
A_vs   (2005-07-28 10:36) [0]

При установке опций [loOwnerDrawVariable,loMulticolumn] перестает работать onDrawItem. В чем причина?


 
ECM ©   (2005-07-28 11:18) [1]

В чем причина? ...Так устроен List Box Control Win32...
loOwnerDrawVariable - предназначен для отрисовки строк высота которых может быть разной. При отрисовке в несколько колонок - это не применимо...Поэтому здесь, для правильной работы OnDrawItem, надо использовать сочетание опций [loOwnerDrawFixed,loMultiColumn].

MSDN:

LBS_OWNERDRAWFIXED
Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are the same height. The owner window receives a WM_MEASUREITEM message when the list box is created and a WM_DRAWITEM message when a visual aspect of the list box has changed.

LBS_OWNERDRAWVARIABLE
Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height. The owner window receives a WM_MEASUREITEM message for each item in the combo box when the combo box is created and a WM_DRAWITEM message when a visual aspect of the combo box has changed.


 
Dodfr   (2005-07-28 11:20) [2]

I don"t read russian but online translators sometimes help me to understand general question.

Why use Ownerdraw permit you to 100% manage drawing routine so why add MultiColumn that is a drawing option managed by system when your are not in multicolumn (I never tested multicolumn but ownerdraw should inactivate any other option that modify inside drawing if the listbox) ?


 
a_vs   (2005-07-28 11:38) [3]

Большое спасибо всем, действительно, помогло!


 
Dodfr   (2005-07-28 12:00) [4]

seems ECM posted its answer at 11:18 when I was writing mine and post at 11:20 :-)



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

Форум: "KOL";
Текущий архив: 2006.03.19;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.44 MB
Время: 0.013 c
4-1135193281
iNBox
2005-12-21 22:28
2006.03.19
Перетаскивание формы на WinApi


2-1141197033
WChek
2006-03-01 10:10
2006.03.19
Работа с параметрами


6-1133119368
asd
2005-11-27 22:22
2006.03.19
Edit и web страничка?


15-1140539510
Kerk
2006-02-21 19:31
2006.03.19
Купил наушники наконец


15-1140616241
batalov
2006-02-22 16:50
2006.03.19
Windows CE





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский