From a77aa9d60014058bef22c572c6b88f8ef13f23e9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 Sep 1999 16:10:48 +0000 Subject: [PATCH] Removed call to SetValidator since CreateBase was doing it already git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/button.cpp | 5 +++-- src/msw/textctrl.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/msw/button.cpp b/src/msw/button.cpp index f9a84f98d2..620c2a74ab 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -70,7 +70,8 @@ bool wxButton::Create(wxWindow *parent, if ( !CreateBase(parent, id, pos, size, style, validator, name) ) return FALSE; - SetValidator(validator); + // Validator was set in CreateBase + //SetValidator(validator); parent->AddChild((wxButton *)this); @@ -83,7 +84,7 @@ bool wxButton::Create(wxWindow *parent, _T("BUTTON"), label, WS_VISIBLE | WS_TABSTOP | WS_CHILD, - 0, 0, 0, 0, + 0, 0, 0, 0, GetWinHwnd(parent), (HMENU)m_windowId, wxGetInstance(), diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 5cc8e00a82..6965ccf42a 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -115,7 +115,8 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, if ( !CreateBase(parent, id, pos, size, style, validator, name) ) return FALSE; - SetValidator(validator); + // Validator was set in CreateBase + //SetValidator(validator); if ( parent ) parent->AddChild(this);