Cell Manipulation in CListCtrl
-
Hi, I am trying to manipulate a List Control at the cell level, trying to have let's say different cell width and heights in the same row. Can this be done, or does anyone know how to do it? THanks in advance.
I encountered same prob a year ago. I don't think there's a way. I also needed to use different fonts for each cell. Best bet is to use third party windows, i.e. grid controls etc. You can easily modify the width of each cell independently of each other though.
-
I encountered same prob a year ago. I don't think there's a way. I also needed to use different fonts for each cell. Best bet is to use third party windows, i.e. grid controls etc. You can easily modify the width of each cell independently of each other though.
Yes, you can control all aspects of the painting of each "cell" in a list view (reportmode). You need to use the LVS_OWNERDRAWFIXED style when creating it. Then, in your DrawItem handler, either call the default method for cells you are not interested in custom drawing, and paint the cell yourself for those that you want to control. See LVS_OWNERDRAWFIXED in the doc.