diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index 77af616a00..26773c624d 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -23,6 +23,7 @@ #include "wx/wx.h" #endif +#include "wx/artprov.h" #include "wx/dataview.h" #include "wx/datetime.h" #include "wx/splitter.h" @@ -689,6 +690,7 @@ void MyFrame::BuildDataViewCtrl(wxPanel* parent, unsigned int nPanel, unsigned l wxDataViewColumn *column5 = new wxDataViewColumn( "custom", cr, 5, -1, wxALIGN_LEFT, wxDATAVIEW_COL_RESIZABLE ); + column5->SetBitmap(wxArtProvider::GetBitmap(wxART_INFORMATION, wxART_MENU)); m_ctrl[0]->AppendColumn( column5 ); diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 801f9dd2ed..2dff6c1e3d 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -264,7 +264,9 @@ class wxDataViewHeaderWindow : public wxHeaderCtrl { public: wxDataViewHeaderWindow(wxDataViewCtrl *parent) - : wxHeaderCtrl(parent) + : wxHeaderCtrl(parent, wxID_ANY, + wxDefaultPosition, wxDefaultSize, + wxHD_DEFAULT_STYLE | wxHD_BITMAP_ON_RIGHT) { }