]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/bitmaptogglebuttontest.cpp
Use TAbs in debian/rules, not spaces, as it's a makefile.
[wxWidgets.git] / tests / controls / bitmaptogglebuttontest.cpp
index a14230ab4e927b0d3e9cc1f7c838e62b3de4e88e..b6992aa7d13852c848ffced8e14e1ede3ba6c0c4 100644 (file)
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
+#include "wx/tglbtn.h"
+
+#ifdef wxHAS_BITMAPTOGGLEBUTTON
+
 #ifndef WX_PRECOMP
     #include "wx/app.h"
 #endif // WX_PRECOMP
 #ifndef WX_PRECOMP
     #include "wx/app.h"
 #endif // WX_PRECOMP
@@ -22,7 +26,6 @@
 #include "testableframe.h"
 #include "wx/uiaction.h"
 #include "wx/artprov.h"
 #include "testableframe.h"
 #include "wx/uiaction.h"
 #include "wx/artprov.h"
-#include "wx/tglbtn.h"
 
 class BitmapToggleButtonTestCase : public CppUnit::TestCase
 {
 
 class BitmapToggleButtonTestCase : public CppUnit::TestCase
 {
@@ -116,4 +119,6 @@ void BitmapToggleButtonTestCase::Value()
     CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() );
 }
 
     CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() );
 }
 
-#endif
+#endif // wxHAS_BITMAPTOGGLEBUTTON
+
+#endif // wxUSE_TOGGLEBTN