X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd6412b6d07c0291a8927375abaa7c0f815e4a96..acb53ea542fd81b5e233ca9b8509a878e883ccbd:/include/wx/listctrl.h?ds=inline diff --git a/include/wx/listctrl.h b/include/wx/listctrl.h index 56be31e332..d92e26d7b0 100644 --- a/include/wx/listctrl.h +++ b/include/wx/listctrl.h @@ -28,12 +28,14 @@ extern WXDLLEXPORT_DATA(const wxChar) wxListCtrlNameStr[]; // include the wxListCtrl class declaration // ---------------------------------------------------------------------------- +#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) + #include "wx/generic/listctrl.h" +#endif + #if defined(__WIN32__) && !defined(__WXUNIVERSAL__) #include "wx/msw/listctrl.h" #elif defined(__WXMAC__) #include "wx/mac/carbon/listctrl.h" -#else - #include "wx/generic/listctrl.h" #endif // ---------------------------------------------------------------------------- @@ -84,7 +86,7 @@ public: { return GetNextSelected(-1); } // return true if the item is selected - bool IsSelected(long index) + bool IsSelected(long index) const { return GetItemState(index, wxLIST_STATE_SELECTED) != 0; } // columns