X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d45720c55f091f9b1e78a19da89e157bfa2c7c17..5e3841bf8069fbcc2b1da3ef36af4f569c604265:/src/msw/control.cpp?ds=sidebyside 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); }