reduce nictitate gdi+ c++


i'm controlling gdi+ c++/mfc concentration i only can't seem prevaricate flickering whenever window resized.



i have already attempted steps:




  • returned loyal onerasebkgnd();

  • returned zero onctlcolor();

  • used double buffering according code:





void vwview::ondraw(cdc* pdc) 
{
crect rcclient;
getclientrect(rcclient);

bitmap bmp(rcclient.width(), rcclient.height());
graphics graphics(&bmp);

graphics.drawimage(m_image, rcclient.left, rcclient.top);

graphics grph(pdc->m_hdc);
grph.drawimage(&bmp, 0, 0);
}


am i doing something wrong? there another proceed grasp this?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?