if ( useLometric )
{
memDc.SetMapMode( wxMM_LOMETRIC );
- wxSize sizePPI = memDc.GetPPI();
sizeRender.x = memDc.DeviceToLogicalXRel( sizeRender.x );
sizeRender.y = memDc.DeviceToLogicalYRel( sizeRender.y );
}
m_gridBitmap = bmp;
- canvas->Bind( wxEVT_PAINT, &GridFrame::OnRenderPaint, this );
+ canvas->Connect( wxEVT_PAINT,
+ wxPaintEventHandler(GridFrame::OnRenderPaint),
+ NULL,
+ this );
frame->Show();
}