]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/bitmaptogglebuttontest.cpp
Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl.
[wxWidgets.git] / tests / controls / bitmaptogglebuttontest.cpp
index a14230ab4e927b0d3e9cc1f7c838e62b3de4e88e..2ff0d8d0c9eb90b3991d45ed75a22258a301e1d2 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/tglbtn.h"
+
+#ifdef wxHAS_BITMAPTOGGLEBUTTON
+
 #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 "wx/tglbtn.h"
 
 class BitmapToggleButtonTestCase : public CppUnit::TestCase
 {
@@ -49,7 +52,7 @@ private:
 // register in the unnamed registry so that these tests are run by default
 CPPUNIT_TEST_SUITE_REGISTRATION( BitmapToggleButtonTestCase );
 
-// also include in it's own registry so that these tests can be run alone
+// also include in its own registry so that these tests can be run alone
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( BitmapToggleButtonTestCase,
                                       "BitmapToggleButtonTestCase" );
 
@@ -116,4 +119,6 @@ void BitmapToggleButtonTestCase::Value()
     CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() );
 }
 
-#endif
+#endif // wxHAS_BITMAPTOGGLEBUTTON
+
+#endif // wxUSE_TOGGLEBTN