c++ - MFC change CListCtrl background color -


i trying develop mfc application. have clistctrl object , want change it's background color complately. tried make in hbrush onctlcolor(cdc* pdc, cwnd* pwnd, uint nctlcolor) event. event isn't fired clistctrlobject. how can it. in advanced.

you may use clistctrl::setbkcolor.

for list views can use owner draw (drawitem) or custom draw.

custom draw easiest way getting more control on background. setting colors simple.

in codeguru find class , description simplifies use of custom draw. part i, part ii


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -