git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26316
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
EVT_MENU(LIST_THAW, MyFrame::OnThaw)
EVT_UPDATE_UI(LIST_SHOW_COL_INFO, MyFrame::OnUpdateShowColInfo)
EVT_MENU(LIST_THAW, MyFrame::OnThaw)
EVT_UPDATE_UI(LIST_SHOW_COL_INFO, MyFrame::OnUpdateShowColInfo)
+ EVT_UPDATE_UI(LIST_TOGGLE_MULTI_SEL, MyFrame::OnUpdateToggleMultiSel)
END_EVENT_TABLE()
BEGIN_EVENT_TABLE(MyListCtrl, wxListCtrl)
END_EVENT_TABLE()
BEGIN_EVENT_TABLE(MyListCtrl, wxListCtrl)
+void MyFrame::OnUpdateToggleMultiSel(wxUpdateUIEvent& event)
+{
+ event.Check((m_listCtrl->GetWindowStyleFlag() & wxLC_SINGLE_SEL) == 0);
+}
+
void MyFrame::OnSetFgColour(wxCommandEvent& WXUNUSED(event))
{
m_listCtrl->SetForegroundColour(wxGetColourFromUser(this));
void MyFrame::OnSetFgColour(wxCommandEvent& WXUNUSED(event))
{
m_listCtrl->SetForegroundColour(wxGetColourFromUser(this));
void OnThaw(wxCommandEvent& event);
void OnUpdateShowColInfo(wxUpdateUIEvent& event);
void OnThaw(wxCommandEvent& event);
void OnUpdateShowColInfo(wxUpdateUIEvent& event);
+ void OnUpdateToggleMultiSel(wxUpdateUIEvent& event);
wxImageList *m_imageListNormal;
wxImageList *m_imageListSmall;
wxImageList *m_imageListNormal;
wxImageList *m_imageListSmall;