]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/gauge95.h
Fix for internal compiler error
[wxWidgets.git] / include / wx / msw / gauge95.h
index 11e77bc685ed38c994afed7716ecd0685abbd619..9bd85fd7d934f422cde4179d4399e735b3bc6085 100644 (file)
@@ -6,16 +6,18 @@
 // Created:     01/02/97
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _GAUGE95_H_
 #define _GAUGE95_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "gauge95.h"
 #endif
 
+#if wxUSE_SLIDER
+
 #include "wx/control.h"
 
 WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
@@ -23,8 +25,6 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
 // Group box
 class WXDLLEXPORT wxGauge95 : public wxControl
 {
-    DECLARE_DYNAMIC_CLASS(wxGauge95)
-
 public:
     wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; }
 
@@ -60,17 +60,20 @@ public:
     bool SetForegroundColour(const wxColour& col);
     bool SetBackgroundColour(const wxColour& col);
 
-    // Backward compatibility
-#if WXWIN_COMPATIBILITY
-    void SetButtonColour(const wxColour& col) { SetForegroundColour(col); }
-#endif
+    // overriden base class virtuals
+    virtual bool AcceptsFocus() const { return FALSE; }
 
     virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
 
 protected:
     int      m_rangeMax;
     int      m_gaugePos;
+
+
+    DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95)
 };
 
+#endif // wxUSE_GAUGE
+
 #endif
     // _GAUGEMSW_H_