// does not prepare the window DC
#define wxBUFFER_CLIENT_AREA 0x02
-class wxBufferedDC : public wxMemoryDC
+class WXDLLEXPORT wxBufferedDC : public wxMemoryDC
{
public:
// Default ctor, must subsequently call Init for two stage construction.
// the buffering style
int m_style;
+ DECLARE_DYNAMIC_CLASS(wxBufferedDC)
DECLARE_NO_COPY_CLASS(wxBufferedDC)
};
// Creates a double buffered wxPaintDC, optionally allowing the
// user to specify their own buffer to use.
-class wxBufferedPaintDC : public wxBufferedDC
+class WXDLLEXPORT wxBufferedPaintDC : public wxBufferedDC
{
public:
// If no bitmap is supplied by the user, a temporary one will be created.
private:
wxPaintDC m_paintdc;
+ DECLARE_ABSTRACT_CLASS(wxBufferedPaintDC)
DECLARE_NO_COPY_CLASS(wxBufferedPaintDC)
};
#endif
#include "wx/dc.h"
+#include "wx/dcbuffer.h" // for IMPLEMENT_DYNAMIC_CLASS
#ifndef WX_PRECOMP
#include "wx/math.h"
// implementation
// ============================================================================
+IMPLEMENT_DYNAMIC_CLASS(wxBufferedDC, wxMemoryDC)
+IMPLEMENT_ABSTRACT_CLASS(wxBufferedPaintDC, wxBufferedDC)
+
#if WXWIN_COMPATIBILITY_2_6
void wxDCBase::BeginDrawing()
{
size_t wxStreamBase::GetSize() const
{
wxFileOffset length = GetLength();
- if ( length == wxInvalidOffset )
+ if ( length == (wxFileOffset)wxInvalidOffset )
return 0;
const size_t len = wx_truncate_cast(size_t, length);