X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/684571809d170c3b5ea62adb36e2fe78cbefcaca..7c2779590d7128bf7354e86dd0e487f09fe3434c:/samples/listctrl/listtest.h?ds=sidebyside diff --git a/samples/listctrl/listtest.h b/samples/listctrl/listtest.h index b3efd7c148..f529be7d6e 100644 --- a/samples/listctrl/listtest.h +++ b/samples/listctrl/listtest.h @@ -113,8 +113,10 @@ protected: void OnShowSelInfo(wxCommandEvent& event); void OnFreeze(wxCommandEvent& event); void OnThaw(wxCommandEvent& event); + void OnToggleLines(wxCommandEvent& event); void OnUpdateShowColInfo(wxUpdateUIEvent& event); + void OnUpdateToggleMultiSel(wxUpdateUIEvent& event); wxImageList *m_imageListNormal; wxImageList *m_imageListSmall; @@ -125,12 +127,12 @@ protected: private: // recreate the list control with the new flags - void RecreateList(long flags, bool withText = TRUE); + void RecreateList(long flags, bool withText = true); // fill the control with items depending on the view void InitWithListItems(); void InitWithReportItems(); - void InitWithIconItems(bool withText, bool sameIcon = FALSE); + void InitWithIconItems(bool withText, bool sameIcon = false); void InitWithVirtualItems(); // return true if the control is not in virtual view, give an error message @@ -175,6 +177,7 @@ enum LIST_FOCUS_LAST, LIST_FREEZE, LIST_THAW, + LIST_TOGGLE_LINES, LIST_CTRL = 1000 };