#pragma hdrstop
 #endif
 
+#if wxUSE_OWNER_DRAWN
+
 #include "wx/xrc/xh_chckl.h"
 #include "wx/checklst.h"
 #include "wx/intl.h"
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-
+#endif
\ No newline at end of file
 
                                                GetText(wxT("help")), kind);
                                                
 #if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
+#if wxUSE_OWNER_DRAWN
                 if (HasParam(wxT("bitmap")))
                     mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
+#endif
 #endif
             p_menu->Append(mitem);
             mitem->Enable(GetBool(wxT("enabled"), TRUE));
 
     #pragma hdrstop
 #endif
 
+#if wxUSE_OWNER_DRAWN
+
 #include "wx/xrc/xh_chckl.h"
 #include "wx/checklst.h"
 #include "wx/intl.h"
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-
+#endif
\ No newline at end of file
 
                                                GetText(wxT("help")), kind);
                                                
 #if wxCHECK_VERSION(2,3,0) || defined(__WXMSW__)
+#if wxUSE_OWNER_DRAWN
                 if (HasParam(wxT("bitmap")))
                     mitem->SetBitmap(GetBitmap(wxT("bitmap"), wxART_MENU));
+#endif
 #endif
             p_menu->Append(mitem);
             mitem->Enable(GetBool(wxT("enabled"), TRUE));