]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/bitmaptogglebuttontest.cpp
Add wxMarkupParser::Strip().
[wxWidgets.git] / tests / controls / bitmaptogglebuttontest.cpp
index a71be54b064e84a000a7630a5926eeb3a5343513..b6992aa7d13852c848ffced8e14e1ede3ba6c0c4 100644 (file)
@@ -9,10 +9,16 @@
 
 #include "testprec.h"
 
+#if wxUSE_TOGGLEBTN
+
 #ifdef __BORLANDC__
     #pragma hdrstop
 #endif
 
+#include "wx/tglbtn.h"
+
+#ifdef wxHAS_BITMAPTOGGLEBUTTON
+
 #ifndef WX_PRECOMP
     #include "wx/app.h"
 #endif // WX_PRECOMP
@@ -20,7 +26,6 @@
 #include "testableframe.h"
 #include "wx/uiaction.h"
 #include "wx/artprov.h"
-#include "wx/tglbtn.h"
 
 class BitmapToggleButtonTestCase : public CppUnit::TestCase
 {
@@ -113,3 +118,7 @@ void BitmapToggleButtonTestCase::Value()
 
     CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() );
 }
+
+#endif // wxHAS_BITMAPTOGGLEBUTTON
+
+#endif // wxUSE_TOGGLEBTN