I'm following this tutorial for MFC/C++: http://www.codeproject.com/listctrl/creportctrl.asp
. This concerns implementing a CListCtrl-derived class with certain "out of the box" functionality that the MFC "report style" CListCtrl lacks. For example, the user can re-order items by clicking on a column header, and, optionally, the programmer can include a checkbox beside nodes.
I created a dialog that uses this CReporCtrl, but that didn't work - I could see entries, but there were no headings, and no lines, even though I'd called the SetGridLines() member function.
I then called ModifyStyle(0,LVS_REPORT),
which is meant to be used with the CListCtrl base class. Now, CReportCtrl was mostly fully functional. The column headers were visible. When I called SetGridLines(TRUE), gridlines appeared. However, one last important piece of functionality was still missing: I couldn't re-order column entries by clicking on a column header, in the style of windows explorer.
I'd be very greatly if someone could point me in the right direction,
Thanks a lot,