#include "wx/scrolbar.h"
#include "wx/os2/private.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
#endif
END_EVENT_TABLE()
-#endif
// Scrollbar
bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos,
const wxSize& size, long style,
+#if wxUSE_VALIDATORS
const wxValidator& validator,
+#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;
m_hWnd = 0; // TODO: (WXHWND)scroll_bar;
+ HWND scroll_bar = 0; // temporary
+
// Subclass again for purposes of dialog editing mode
SubclassWin((WXHWND) scroll_bar);