]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/checklst.cpp
don't readd items in SetImageList() after changing the control mode, they are suppose...
[wxWidgets.git] / src / palmos / checklst.cpp
index fe75aeae4d7e7b3e0f7f7c7698b22d5df83a234b..a7757f3630afdfa44d4f9b3db663333493c5243b 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#if wxUSE_OWNER_DRAWN
+#if wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN
+
+#include "wx/checklst.h"
 
 #ifndef WX_PRECOMP
     #include "wx/object.h"
@@ -41,7 +43,6 @@
 #endif
 
 #include "wx/ownerdrw.h"
-#include "wx/checklst.h"
 
 #include "wx/palmos/wrapwin.h"
 
@@ -141,7 +142,7 @@ public:
 
 private:
 
-    DECLARE_NO_COPY_CLASS(wxCheckListBoxItem)
+    wxDECLARE_NO_COPY_CLASS(wxCheckListBoxItem);
   bool            m_bChecked;
   wxCheckListBox *m_pParent;
   size_t          m_nIndex;
@@ -283,4 +284,4 @@ int wxCheckListBox::DoHitTestItem(wxCoord x, wxCoord y) const
     return wxNOT_FOUND;
 }
 
-#endif
+#endif // wxUSE_CHECKLISTBOX && wxUSE_OWNER_DRAWN