I'm a newbie of wxWidgets. I'm using wxListCtrl in report mode, and I found that the effect (header style, see pictures) of mine is different from the example (listctrl in samples folder). I can't find the what reason causes that.
My demo appliction screenshot:
Example screenshot in offical release:
I run these codes on Windows XP, and my demo code is like this:
Code: Select all
long style = wxLC_REPORT | wxLC_EDIT_LABELS | wxSUNKEN_BORDER;
wxListCtrl* pListCtrl = new wxListCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style);
pListCtrl->InsertColumn(0, _T("First Column"));
pListCtrl->InsertColumn(1, _T("Second Column"));
pListCtrl->SetColumnWidth(0, 150);
pListCtrl->SetColumnWidth(1, 150);
Andraw