I've created a list control (CListCtrl-derived) that shows parameters for a selected command. Now the number of parameters can change, based on the selected command. Sometimes the list control looks silly, as there is one row there, and a whole heap of unused rows, which look like they are still normal rows (I am showing grid lines.)
What is the best way to make a CListCtrl-derived class only show the rows that exist, and the other area in the control shaded a certain colour (e.g., gray, like you see in other programs...) ? I'm sure this would be useful for many people.