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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -