22 #include <wx/window.h>
23 #include <wx/dcclient.h>
40 const wxSize& size,
long style,
int pl_style ) :
41 wxWindow( parent,
id, pos, size, style | wxFULL_REPAINT_ON_RESIZE )
45 MemPlotDC =
new wxMemoryDC;
46 if ( size.GetWidth() < 0 || size.GetHeight() < 0 )
53 m_width = size.GetWidth();
54 m_height = size.GetHeight();
56 bitmapWidth = m_width;
57 bitmapHeight = m_height;
59 MemPlotDCBitmap =
new wxBitmap( bitmapWidth, bitmapHeight, -1 );
60 MemPlotDC->SelectObject( *MemPlotDCBitmap );
62 m_stream =
new wxPLplotstream( (wxDC *) MemPlotDC, m_width, m_height, pl_style );
65 m_backend = 1 << ( m_backend + 2 );
68 SetBackgroundStyle( wxBG_STYLE_CUSTOM );
103 GetClientSize( &width, &height );
161 if ( ( sfile = fopen( filename.mb_str(),
"wb+" ) ) == NULL )
173 plsdev( devname.mb_str() );
176 plspage( 0., 0., 800, 600, 0, 0 );