Update sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-02-23 02:11:57 +00:00
parent 6842a71a5b
commit 0313c114f5

View File

@@ -47,7 +47,7 @@ public:
tmp.Printf( wxT("item(%d;%d)"), (int)row, (int)col ); tmp.Printf( wxT("item(%d;%d)"), (int)row, (int)col );
return tmp; return tmp;
} }
} };
// ------------------------------------- // -------------------------------------
// MyApp // MyApp
@@ -127,12 +127,14 @@ MyFrame::MyFrame(wxFrame *frame, wxChar *title, int x, int y, int w, int h):
dataview = new wxDataViewCtrl( this, -1 ); dataview = new wxDataViewCtrl( this, -1 );
dataview->AppendStringColumn( wxT("first") );
dataview->AppendStringColumn( wxT("second") );
dataview->AppendStringColumn( wxT("third") );
MyTextModel *model = new MyTextModel; MyTextModel *model = new MyTextModel;
dataview->AssociateModel( Model ); dataview->AssociateModel( model );
dataview->AppendStringColumn( wxT("first"), 0 );
dataview->AppendStringColumn( wxT("second"), 1 );
dataview->AppendStringColumn( wxT("third"), 2 );
} }
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) ) void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )