X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d45720c55f091f9b1e78a19da89e157bfa2c7c17..f0834140313212fc54d09e28d21a95476d6545f2:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index ba76513c75..3a3b57b99c 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -78,11 +78,10 @@ bool wxControl::Create(wxWindow *parent, bool wxControl::MSWCreateControl(const wxChar *classname, const wxString& label, const wxPoint& pos, - const wxSize& size, - long style) + const wxSize& size) { WXDWORD exstyle; - WXDWORD msStyle = MSWGetStyle(style, &exstyle); + WXDWORD msStyle = MSWGetStyle(GetWindowStyle(), &exstyle); return MSWCreateControl(classname, msStyle, pos, size, label, exstyle); }