X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdf1e7142564c55f5299f1f2d0909090534eb97c..f97d84a63b21fffcc830390e5bc3fe0eedb6e15b:/src/os2/radiobut.cpp diff --git a/src/os2/radiobut.cpp b/src/os2/radiobut.cpp index eff8c241ac..a2989ec2e0 100644 --- a/src/os2/radiobut.cpp +++ b/src/os2/radiobut.cpp @@ -23,11 +23,10 @@ #include "wx/brush.h" #endif -#include "wx/msw/private.h" +#include "wx/os2/private.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl) -#endif +IMPLEMENT_DYNAMIC_CLASS(wxBitmapRadioButton, wxRadioButton) bool wxRadioButton::OS2Command(WXUINT param, WXWORD id) { @@ -45,11 +44,15 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos, const wxSize& size, long style, +#if wxUSE_VALIDATORS const wxValidator& validator, +#endif const wxString& name) { SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif if (parent) parent->AddChild(this); @@ -149,11 +152,15 @@ bool wxBitmapRadioButton::Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap, const wxPoint& pos, const wxSize& size, long style, +#if wxUSE_VALIDATORS const wxValidator& validator, +#endif const wxString& name) { SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif if (parent) parent->AddChild(this); SetBackgroundColour(parent->GetBackgroundColour());