]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
Forward declare classes instead of including their declarations.
[wxWidgets.git] / src / gtk / checkbox.cpp
index 52d99fe5698201a1f86a43ed0cf8e3266a8f2d44..5faa27c19bf3850faaca00f232b4efd9109457fa 100644 (file)
@@ -105,6 +105,7 @@ bool wxCheckBox::Create(wxWindow *parent,
                         const wxValidator& validator,
                         const wxString &name )
 {
+    WXValidateStyle( &style );
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
@@ -112,11 +113,6 @@ bool wxCheckBox::Create(wxWindow *parent,
         return false;
     }
 
-    wxASSERT_MSG( (style & wxCHK_ALLOW_3RD_STATE_FOR_USER) == 0 ||
-                  (style & wxCHK_3STATE) != 0,
-                  wxT("Using wxCHK_ALLOW_3RD_STATE_FOR_USER")
-                  wxT(" style flag for a 2-state checkbox is useless") );
-
     if ( style & wxALIGN_RIGHT )
     {
         // VZ: as I don't know a way to create a right aligned checkbox with