+
+ // array controls
+#if wxUSE_CHECKLISTBOX
+ // NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
+ if (wxDynamicCast(m_validatorWindow, wxCheckListBox))
+ {
+ wxCheckListBox* pControl = (wxCheckListBox*) m_validatorWindow;
+ if (m_pArrayInt)
+ {
+ // clear all selections
+ size_t i,
+ count = pControl->GetCount();
+ for ( i = 0 ; i < count; i++ )
+ pControl->Check(i, false);
+
+ // select each item in our array
+ count = m_pArrayInt->GetCount();
+ for ( i = 0 ; i < count; i++ )
+ pControl->Check(m_pArrayInt->Item(i));
+
+ return true;
+ }
+ else
+ return false;
+ } else