]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/slider.cpp
Corrected problem with MDI children not refreshing (removed WS_CLIPCHILDREN).
[wxWidgets.git] / src / msw / slider.cpp
index 275e19e3d6be495f49459ed1d60841bc34d73b77..f09cdb8cb3946d4360c58287231ef3e31fd12e31 100644 (file)
@@ -156,6 +156,8 @@ bool wxSlider::Create(wxWindow *parent, const wxWindowID id,
 
   SubclassWin(GetHWND());
 
+  SetFont(parent->GetFont());
+
   if ( m_windowStyle & wxSL_LABELS )
   {
       // Finally, create max value static item
@@ -165,8 +167,6 @@ bool wxSlider::Create(wxWindow *parent, const wxWindowID id,
                              0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)NewControlId(),
                              wxGetInstance(), NULL);
 
-      SetFont(parent->GetFont());
-
       if (GetFont())
       {
 //        GetFont()->RealizeResource();