]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_listb.cpp
[ 1509599 ] 'Split pickers page in widgets sample' with more icons and rebaking.
[wxWidgets.git] / src / xrc / xh_listb.cpp
index 300b657a81bc616d8d7cefc3e196088e4570290a..0deaa03beddd11f762d3b0625a9b71fd64dc8383 100644 (file)
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC
+#if wxUSE_XRC && wxUSE_LISTBOX
 
 #include "wx/xrc/xh_listb.h"
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
+    #include "wx/listbox.h"
 #endif
 
-#include "wx/listbox.h"
-
 IMPLEMENT_DYNAMIC_CLASS(wxListBoxXmlHandler, wxXmlResourceHandler)
 
 wxListBoxXmlHandler::wxListBoxXmlHandler()
@@ -102,4 +101,4 @@ bool wxListBoxXmlHandler::CanHandle(wxXmlNode *node)
            (m_insideBox && node->GetName() == wxT("item")));
 }
 
-#endif // wxUSE_XRC
+#endif // wxUSE_XRC && wxUSE_LISTBOX