#include "wx/generic/scrolwin.h"
#include "wx/panel.h"
-#if !USE_SHARED_LIBRARY
BEGIN_EVENT_TABLE(wxScrolledWindow, wxPanel)
EVT_SCROLLWIN(wxScrolledWindow::OnScroll)
EVT_SIZE(wxScrolledWindow::OnSize)
END_EVENT_TABLE()
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindow, wxPanel)
-#endif
#ifdef __WXMSW__
#include "windows.h"
#ifdef __WXMOTIF__
// For wxRETAINED implementation
+#ifdef __VMS__ //VMS's Xm.h is not (yet) compatible with C++
+ //This code switches off the compiler warnings
+# pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+# pragma message enable nosimpint
+#endif
#endif
wxScrolledWindow::wxScrolledWindow()
#ifdef __WXMSW__
// Necessary?
- UpdateWindow ((HWND) GetHWND());
+ UpdateWindow ((HWND) m_targetWindow->GetHWND());
+#endif
+#ifdef __WXMAC__
+ m_targetWindow->MacUpdateImmediately() ;
#endif
}
else
m_targetWindow->Refresh();
}
+#ifdef __WXMAC__
+ m_targetWindow->MacUpdateImmediately() ;
+#endif
}
int wxScrolledWindow::CalcScrollInc(wxScrollWinEvent& event)
#else
// Refresh();
#endif
+#ifdef __WXMAC__
+ m_targetWindow->MacUpdateImmediately() ;
+#endif
}
void wxScrolledWindow::EnableScrolling (bool x_scroll, bool y_scroll)