]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/scrolbar.cpp
Oops, don't cut and paste between ports, and do test compile both states
[wxWidgets.git] / src / os2 / scrolbar.cpp
index 8c70f74b6026a68049d280b5b9ccc59ef7f16134..4b3662cb84e70a1b662d73c09e4a4ae2d502e92d 100644 (file)
@@ -20,7 +20,6 @@
 #include "wx/scrolbar.h"
 #include "wx/os2/private.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
 
 BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
@@ -29,7 +28,6 @@ BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
 #endif
 END_EVENT_TABLE()
 
-#endif
 
 // Scrollbar
 bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
@@ -42,8 +40,10 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
         return FALSE;
     parent->AddChild(this);
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
-    
+#endif
+
     SetBackgroundColour(parent->GetBackgroundColour()) ;
     SetForegroundColour(parent->GetForegroundColour()) ;
     m_windowStyle = style;
@@ -83,6 +83,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);