]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge95.cpp
inform the IM context about focus changes
[wxWidgets.git] / src / msw / gauge95.cpp
index 6e3a01a249357441c9a697a3a2bd944cf727f524..6b176c92ec77ce780f6cfddf4b82180f2512cee1 100644 (file)
@@ -145,9 +145,6 @@ bool wxGauge95::Create(wxWindow *parent,
     if ( !MSWCreateControl(PROGRESS_CLASS, wxEmptyString, pos, size) )
         return false;
 
-    SetBackgroundColour(parent->GetBackgroundColour());
-    SetForegroundColour(parent->GetForegroundColour());
-
     SetRange(range);
 
     return true;
@@ -174,10 +171,10 @@ wxSize wxGauge95::DoGetBestSize() const
 {
     // VZ: no idea where does 28 come from, it was there before my changes and
     //     as nobody ever complained I guess we can leave it...
-    if (HasFlag(wxGA_HORIZONTAL))
-        return wxSize(100, 28);
+    if (HasFlag(wxGA_VERTICAL))
+        return wxSize(28, 100);
     else
-        return wxSize(28,100);
+        return wxSize(100, 28);
 }
 
 // ----------------------------------------------------------------------------