Search code examples
c++wxwidgets

wxWidgets ListView headers not showing


The headers of my ListCtrl are not showing up.

Headers

The entire bar that contains "Names" and "Values" in this image doesn't show up. I am using Codeblocks with the built in editor. Here is the code I used to add a column and dummy data and an image of the result:

wxListItem column;
column.SetText(_("Column 1"));
lvSongs->InsertColumn(0, column);

lvSongs->InsertItem(0, _("Song Title"));

enter image description here


Solution

  • Change the style of the ListCtrl to wxLC_REPORT.