+ if ((style & wxNO_DEFAULT) != 0 && (style & wxNO) == 0)
+ wxFAIL_MSG("wxNO_DEFAULT is invalid without wxNO");
+
+ if ((style & wxCANCEL_DEFAULT) != 0 && (style & wxCANCEL) == 0)
+ wxFAIL_MSG("wxCANCEL_DEFAULT is invalid without wxCANCEL");
+
+ if ((style & wxCANCEL_DEFAULT) != 0 && (style & wxNO_DEFAULT) != 0)
+ wxFAIL_MSG("only one default button can be specified");
+#endif
+