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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -