]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_slidr.cpp
No real changes, just change type of MSWGetBgBrush() argument.
[wxWidgets.git] / src / xrc / xh_slidr.cpp
index c34926df31ac1273241a871f72f5f1cce4449da5..9f6e07cf31c479023a3ab8b12aa98e7d5887e7ad 100644 (file)
     #include "wx/slider.h"
 #endif
 
+static const long DEFAULT_VALUE = 0;
+static const long DEFAULT_MIN = 0;
+static const long DEFAULT_MAX = 100;
+
+
 IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler)
 
 wxSliderXmlHandler::wxSliderXmlHandler()
@@ -48,9 +53,9 @@ wxObject *wxSliderXmlHandler::DoCreateResource()
 
     control->Create(m_parentAsWindow,
                     GetID(),
-                    GetLong(wxT("value"), wxSL_DEFAULT_VALUE),
-                    GetLong(wxT("min"), wxSL_DEFAULT_MIN),
-                    GetLong(wxT("max"), wxSL_DEFAULT_MAX),
+                    GetLong(wxT("value"), DEFAULT_VALUE),
+                    GetLong(wxT("min"), DEFAULT_MIN),
+                    GetLong(wxT("max"), DEFAULT_MAX),
                     GetPosition(), GetSize(),
                     GetStyle(),
                     wxDefaultValidator,