#pragma interface "controlwithitems.h"
#endif
+#include "wx/defs.h"
+
#if wxUSE_CONTROLS
#include "wx/control.h" // base class
// reads better for multi-selection ones
void Select(int n) { SetSelection(n); }
+
+protected:
+
+ // check that the index is valid
+ inline bool IsValid(int n) const { return n >= 0 && n < GetCount(); }
};
class WXDLLEXPORT wxItemContainer : public wxItemContainerImmutable