+
+ // Also add a simple list to the sample
+
+ m_simpleListCtrl = new wxListCtrl( m_panel, -1, wxDefaultPosition, wxDefaultSize,
+ wxLC_REPORT | wxLC_SINGLE_SEL );
+ m_simpleListCtrl->InsertColumn(0, "Column 1", wxLIST_FORMAT_LEFT, 80);
+ m_simpleListCtrl->InsertColumn(1, "Column 2", wxLIST_FORMAT_LEFT, 100);
+ m_simpleListCtrl->InsertColumn(2, "Column 3", wxLIST_FORMAT_LEFT, 100);
+
+ for ( int i = 0; i < NUM_ITEMS; i++ )
+ {
+ wxString buf;
+ buf.Printf(_T("Item %d"), i);
+ long tmp = m_simpleListCtrl->InsertItem(i, buf, 0);
+ buf.Printf(_T("Col 1, item %d"), i);
+ m_simpleListCtrl->SetItem(tmp, 1, buf);
+ buf.Printf(_T("Col 2, item %d"), i);
+ m_simpleListCtrl->SetItem(tmp, 2, buf);
+ }
+