851
MyFrame::OnPaint (wxPaintEvent & event)
853
wxPaintDC paint_dc (this);
854
wxBufferedDC dc (&paint_dc);
850
MyFrame::OnPaint (wxPaintEvent & event) {
852
wxAutoBufferedPaintDC dc (this);
855
853
wxPoint framePos = this->GetScreenPosition ();
856
854
wxSize sz = GetClientSize ();
859
* -------------- Version using background bitmap ------------
861
856
dc.Blit (0, 0, sz.GetWidth (), sz.GetHeight (), src_dc, framePos.x,
864
/*------------ Version using Screen device context BitBlit ---------------- */
866
* wxScreenDC screen; dc.Blit(0, 0, sz.GetWidth(), sz.GetHeight(),
867
* &screen, framePos.x, framePos.y);
870
// dc.DrawBitmap(wxBitmap(*appBackground),0,sz.GetHeight () -
873
859
drawBmp (&dc, wxBitmap (*appBackground), 0,
874
860
sz.GetHeight () - settings.BG_HEIGHT, appSize.GetWidth (),
875
861
settings.BG_HEIGHT);
879
* wxScreenDC scrDC; //
880
* scrDC.StartDrawingOnTop(&wxRect(framePos.x-10,framePos.y-10,ICONW,ICONH));
881
* scrDC.StartDrawingOnTop();
883
* // drawBmp (&scrDC, wxBitmap (ImagesList[0]->img), framePos.x-10,
884
* framePos.y-10, ICONW,ICONH);
886
* scrDC.DrawBitmap (wxBitmap (ImagesList[0]->img), framePos.x-10,
889
* scrDC.EndDrawingOnTop();
894
864
for (unsigned int i = 0; i < ImagesList->GetCount (); i++)
896
866
simImage *img = (*ImagesList)[i];