bool DataModelListCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator) { #if USE_DATALISTVIEW bool ok = base::Create(parent, id, pos, size, style); if (ok) SetValidator(validator); #else bool ok = base::Create(parent, id, pos, size, style, validator); if (ok) EnableAlternateRowColours(); #endif return ok; }
CBOINCListCtrl::CBOINCListCtrl( CBOINCBaseView* pView, wxWindowID iListWindowID, wxInt32 iListWindowFlags ) : LISTCTRL_BASE( pView, iListWindowID, wxDefaultPosition, wxSize(-1, -1), iListWindowFlags ) { m_pParentView = pView; // Enable Zebra Striping EnableAlternateRowColours(true); #if USE_NATIVE_LISTCONTROL m_bProgressBarEventPending = false; #else #ifdef __WXMAC__ SetupMacAccessibilitySupport(); #endif #endif }