]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/scrolwin.h
correction for compilation with -cpp-precomp option
[wxWidgets.git] / include / wx / scrolwin.h
index 86457a8b509c1e5c64df8da7aa8b0a49ea288b35..83a1d8e839cad188adeed9ad332aa408caa3eb7f 100644 (file)
@@ -5,6 +5,23 @@
 #include "wx/gtk/scrolwin.h"
 #else
 #include "wx/generic/scrolwin.h"
+// For non-GTK+ platforms, always use wxGenericScrolledWindow
+class WXDLLEXPORT wxScrolledWindow: public wxGenericScrolledWindow
+{
+public:
+    DECLARE_CLASS(wxScrolledWindow)
+    wxScrolledWindow() {};
+    wxScrolledWindow(wxWindow *parent,
+                     wxWindowID id = -1,
+                     const wxPoint& pos = wxDefaultPosition,
+                     const wxSize& size = wxDefaultSize,
+                     long style = wxScrolledWindowStyle,
+                     const wxString& name = wxPanelNameStr)
+    {
+        wxGenericScrolledWindow::Create(parent, id, pos, size, style, name);
+    }
+};
+#define wxSCROLLED_WINDOW_IS_GENERIC 1
 #endif
 
 #endif