X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409c9842c71df526bcfbf1cf5ce80067b09d4d97..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/os2/scrolbar.cpp diff --git a/src/os2/scrolbar.cpp b/src/os2/scrolbar.cpp index 8c70f74b60..a279ce3612 100644 --- a/src/os2/scrolbar.cpp +++ b/src/os2/scrolbar.cpp @@ -35,15 +35,23 @@ END_EVENT_TABLE() bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, +#if wxUSE_VALIDATORS +# if defined(__VISAGECPP__) + const wxValidator* validator, +# else const wxValidator& validator, +# endif +#endif const wxString& name) { if (!parent) return FALSE; parent->AddChild(this); SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); - +#endif + SetBackgroundColour(parent->GetBackgroundColour()) ; SetForegroundColour(parent->GetForegroundColour()) ; m_windowStyle = style; @@ -83,6 +91,8 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, m_hWnd = 0; // TODO: (WXHWND)scroll_bar; + HWND scroll_bar = 0; // temporary + // Subclass again for purposes of dialog editing mode SubclassWin((WXHWND) scroll_bar);