Add wxListCtrl::IsEmpty()

Add a simple accessor for consistency with the other controls.
This commit is contained in:
Vadim Zeitlin
2019-10-08 01:20:44 +02:00
parent f95ce8d9d5
commit 654bfaea31
2 changed files with 13 additions and 0 deletions

View File

@@ -381,6 +381,9 @@ public:
// Return the current number of items.
virtual int GetItemCount() const = 0;
// Check if the control is empty, i.e. doesn't contain any items.
bool IsEmpty() const { return GetItemCount() == 0; }
// Return the current number of columns.
virtual int GetColumnCount() const = 0;