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 clistctrl
object. 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
Post a Comment