+void MyFrame::OnShowColInfo(wxCommandEvent& event)
+{
+ int count = m_listCtrl->GetColumnCount();
+ wxLogMessage("%d columns:", count);
+ for ( int c = 0; c < count; c++ )
+ {
+ wxLogMessage("\tcolumn %d has width %d", c,
+ m_listCtrl->GetColumnWidth(c));
+ }
+}
+
+void MyFrame::OnUpdateShowColInfo(wxUpdateUIEvent& event)
+{
+ event.Enable( (m_listCtrl->GetWindowStyleFlag() & wxLC_REPORT) != 0 );
+}
+