]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/checklstcmn.cpp
add support for alpha in color dialog on OSX, see #14127
[wxWidgets.git] / src / common / checklstcmn.cpp
index 6721038c152c2b6bae033f86b46f4b41c63609f9..fe451702a7b4e69885795f9341cc4498cec8c1e2 100644 (file)
@@ -99,4 +99,22 @@ wxCONSTRUCTOR_4( wxCheckListBox, wxWindow*, Parent, wxWindowID, Id, \
                  wxPoint, Position, wxSize, Size )
 
 
+// ============================================================================
+// implementation
+// ============================================================================
+
+unsigned int wxCheckListBoxBase::GetCheckedItems(wxArrayInt& checkedItems) const
+{
+    unsigned int const numberOfItems = GetCount();
+
+    checkedItems.clear();
+    for ( unsigned int i = 0; i < numberOfItems; ++i )
+    {
+        if ( IsChecked(i) )
+            checkedItems.push_back(i);
+    }
+
+    return checkedItems.size();
+}
+
 #endif