X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..dd05139a8023fd3e30476409fafbe04221c6d627:/src/mac/carbon/listbox.cpp diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index d238da7cd0..5a0858ee35 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -18,15 +18,15 @@ #ifndef WX_PRECOMP #include "wx/dynarray.h" #include "wx/log.h" + #include "wx/intl.h" #include "wx/app.h" + #include "wx/utils.h" + #include "wx/button.h" + #include "wx/settings.h" + #include "wx/arrstr.h" + #include "wx/toplevel.h" #endif -#include "wx/button.h" -#include "wx/settings.h" -#include "wx/toplevel.h" - -#include "wx/utils.h" - IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) BEGIN_EVENT_TABLE(wxListBox, wxControl) @@ -34,7 +34,6 @@ END_EVENT_TABLE() #include "wx/mac/uma.h" #include "wx/dynarray.h" -#include "wx/arrstr.h" // ============================================================================ // list box control implementation @@ -516,7 +515,6 @@ OSStatus wxMacListBoxItem::GetSetData( wxMacDataItemBrowserControl *owner , OSStatus err = errDataBrowserPropertyNotSupported; wxListBox *list = wxDynamicCast( owner->GetPeer() , wxListBox ); wxCHECK_MSG( list != NULL , errDataBrowserPropertyNotSupported , wxT("Listbox expected")); - wxCheckListBox *checklist = wxDynamicCast( list , wxCheckListBox ); if ( !changeValue ) { @@ -718,7 +716,7 @@ void wxMacDataBrowserListControl::SetClientDataType(wxClientDataType clientDataI unsigned int wxMacDataBrowserListControl::MacGetCount() const { - return GetItemCount(wxMacDataBrowserRootContainer,false,kDataBrowserItemNoState); + return GetItemCount(wxMacDataBrowserRootContainer,false,kDataBrowserItemAnyState); } void wxMacDataBrowserListControl::MacDelete( unsigned int n ) @@ -958,4 +956,4 @@ static pascal void ListBoxDrawProc( #endif -#endif +#endif // wxUSE_LISTBOX