I have created a sub class of CListCtrl, namely CColorListCtrl, and overridden the DrawItem() method so that it can even display color for a legend.
Now i have to 2 list control set as report view and owner redraw. Both these control are used for displaying legend. But one list control has 3 columns and other has only 2 columns. So i want to know how to determine the no of columns in a list control, so that i can use CColorListCtrl class for both the list controls.
Thanks in advance.
rcs
Now i have to 2 list control set as report view and owner redraw. Both these control are used for displaying legend. But one list control has 3 columns and other has only 2 columns. So i want to know how to determine the no of columns in a list control, so that i can use CColorListCtrl class for both the list controls.
Thanks in advance.
rcs