]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/checkbox.cpp
A clarification
[wxWidgets.git] / samples / widgets / checkbox.cpp
index 8b242623b2d1d22a7ca63c6fcc3256ef9c4667e0..4cd2da6f662fbc7514ac8bb4e86e242803825a89 100644 (file)
@@ -29,6 +29,7 @@
     #include "wx/app.h"
     #include "wx/log.h"
 
+    #include "wx/bitmap.h"
     #include "wx/button.h"
     #include "wx/checkbox.h"
 
@@ -147,8 +148,8 @@ void CheckBoxWidgetsPage::OnCheckBox(wxCommandEvent& event)
     };
     wxCheckBoxState state = (wxCheckBoxState) event.GetInt();
 
-    wxCHECK_RET( (state >= 0) && (state < WXSIZEOF(stateNames)),
-        "event.GetInt() returned an invalid wxCheckBoxState" );
+    wxCHECK_RET( (state >= (wxCheckBoxState)0) && (state < (wxCheckBoxState)WXSIZEOF(stateNames)),
+        _T("event.GetInt() returned an invalid wxCheckBoxState") );
 
     wxLogMessage(wxT("Checkbox now set to state: %s"),
         stateNames[state].c_str());