Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Раскраска Listbox и dbGrid

15 views
Skip to first unread message

Dmitriy Kulikov

unread,
Oct 21, 2007, 3:44:14 AM10/21/07
to
Hello *All* !

Hужно поочерёдно раскрасить строки в ListBox и DBGrid в Borland C++ Builder.
Т.е. - первая, например - сиреневая, вторая - белая, третья - опять
сиреневая... Можно это как-нибудь сделать?

* Оpигинал в ru.cbuilder
* Также послано в ru.cpp.chainik

_Dmitriy Kulikov_ для <Пpогpаммиpование на C++Builder> [21 Окт 07 - 12:44]
[ 2:6090/14 - 2.60...@gmail.com - http://coolikoff.blogspot.com ]

Soldatenkov Mitea

unread,
Oct 22, 2007, 1:54:36 PM10/22/07
to
Привет, Dmitriy Kulikov!
Ты вроде писал(а) в эху RU.CPP.CHAINIK следуюшее:
DK> Hужно поочерёдно раскрасить строки в ListBox и DBGrid в Borland C++
DK> Builder. Т.е. - первая, например - сиреневая, вторая - белая, третья -
DK> опять сиреневая... Можно это как-нибудь сделать?
Оно? "LVS_OWNERDRAWFIXED Enables the owner window to paint items in
report view. The list view control sends a WM_DRAWITEM message to paint each
item; it does not send separate messages for each subitem. The itemData member
of the DRAWITEMSTRUCT structure contains the item data for the specified list
view item."

Dmitriy Kulikov

unread,
Oct 25, 2007, 2:12:44 PM10/25/07
to
Hello *Soldatenkov* !

22 Окт 07 22:54, you wrote to me:

SM> Оно? "LVS_OWNERDRAWFIXED Enables the owner window to paint
SM> items in report view. The list view control sends a WM_DRAWITEM
SM> message to paint each item; it does not send separate messages for
SM> each subitem. The itemData member of the DRAWITEMSTRUCT structure
SM> contains the item data for the specified list view item."

Интересная штука, спасибо!!! Hадо будет посмотреть что к чему... Сам же сделал
немного по-другому...

_Dmitriy Kulikov_ для <C/C++ для начинающих> [25 Окт 07 - 23:12]

0 new messages