]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/listbox.cpp
Include wx/dcscreen.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / src / mac / carbon / listbox.cpp
index 3d6eac95daaecba9e9f15dcbe3d2a6e99b1e768d..1b54683f4e94ead31bbc1e81aed809956a705914 100644 (file)
 
 #if wxUSE_LISTBOX
 
+#include "wx/listbox.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/log.h"
+    #include "wx/app.h"
+    #include "wx/utils.h"
 #endif
 
-#include "wx/app.h"
-#include "wx/listbox.h"
 #include "wx/button.h"
 #include "wx/settings.h"
 #include "wx/toplevel.h"
-#include "wx/log.h"
-
-#include "wx/utils.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
 
@@ -515,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 )
     {
@@ -717,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 )