]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/scrolbar.cpp
mingw32 compilation fixes
[wxWidgets.git] / src / os2 / scrolbar.cpp
index 8c70f74b6026a68049d280b5b9ccc59ef7f16134..bcf4a9e18763f32f0f2b4c6fa72a88cb1fb73027 100644 (file)
@@ -35,15 +35,19 @@ END_EVENT_TABLE()
 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;
@@ -83,6 +87,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);