]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge95.cpp
wxListCtrl column resize bug corrected
[wxWidgets.git] / src / msw / gauge95.cpp
index e48513d6808526355d317f6919f6b7437f8619e8..3f934a58c082f31407b2f5ab302d83482d93c33d 100644 (file)
@@ -29,7 +29,7 @@
 #include "wx/msw/gauge95.h"
 #include "wx/msw/private.h"
 
-#if defined(__WIN95__) && !defined(__GNUWIN32__)
+#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__)
 #include <commctrl.h>
 #endif
 
@@ -81,12 +81,12 @@ bool wxGauge95::Create(wxWindow *parent, wxWindowID id,
 
   SendMessage((HWND) GetHWND(), PBM_SETRANGE, 0, MAKELPARAM(0, range));
 
-  SetFont(parent->GetFont());
+  SetFont(parent->GetFont());
 
   if (width == -1)
     width = 50;
   if (height == -1)
-    height = 50;
+    height = 28;
   SetSize(x, y, width, height);
 
   ShowWindow((HWND) GetHWND(), SW_SHOW);