]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
wxRegion should work with wxCoord, not long
[wxWidgets.git] / src / msw / control.cpp
index f6f67bac355088e4230c344921cabd0ce5dffb1e..0a177e8d69fa1f194e1d8f53dd1cfea24b9a5d23 100644 (file)
@@ -56,6 +56,24 @@ wxControl::~wxControl()
     m_isBeingDeleted = TRUE;
 }
 
+
+bool wxControl::Create(wxWindow *parent, wxWindowID id,
+                       const wxPoint& pos,
+                       const wxSize& size, long style,
+#if wxUSE_VALIDATORS
+                       const wxValidator& validator,
+#endif
+                       const wxString& name)
+{
+    bool rval = wxWindow::Create(parent, id, pos, size, style, name);
+    if (rval) {
+#if wxUSE_VALIDATORS
+        SetValidator(validator);
+#endif
+    }
+    return rval;
+}
+
 bool wxControl::MSWCreateControl(const wxChar *classname,
                                  WXDWORD style,
                                  const wxPoint& pos,