Add convenient wxListCtrl::AppendColumn() wrapper.

In the vast majority of cases, columns are just appended to the end and not
inserted at arbitrary positions in wxListCtrl so provide a convenient wrapper
to do this, especially as it's really trivial to do it now when it can be done
only once at wxListCtrlBase level.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-01-07 15:09:47 +00:00
parent 94248d2ed1
commit c23edb1b71
3 changed files with 28 additions and 0 deletions

View File

@@ -136,6 +136,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxListEvent, wxNotifyEvent)
// wxListCtrlBase implementation
// ----------------------------------------------------------------------------
long
wxListCtrlBase::AppendColumn(const wxString& heading,
int format,
int width)
{
return InsertColumn(GetColumnCount(), heading, format, width);
}
long
wxListCtrlBase::InsertColumn(long col,
const wxString& heading,