How to edit columns in-place with CListCtrl?

esrkan picture esrkan · Oct 31, 2008 · Viewed 8.7k times · Source

I want to have CListCtrl.EditLabel() for any column of the list. How can I implement such a feature?

Answer

Aidan Ryan picture Aidan Ryan · Oct 31, 2008

Don't attempt with CListCtrl.

Use the MFC Grid Control. We deploy it in an off-the-shelf app with success. It offers in-place edit, checkbox, spin, etc for all cells, as well as column and row headers, auto-size, auto-expand, colors, drag-drop.