Wednesday, May 23, 2012

ListView owner drawing and column auto-resizing

I have a ListView which is using owner drawing to draw additional content for some sub-items.

I've found that because this additional content takes up some additional space the list view now incorrectly calculates the column "auto resize" width, and so when someone auto-resizes some columns (e.g. by double clicking on the column resize handle) the column is resized so that it is too small, and the text in that list view is rendered with parenthases (...) at the end.

Is there a way that I can prompt the list view to ask me what size the columns should be during an auto-resize?

No comments:

Post a Comment