Hi,
Thanks for looking in to this !
I have my paint function,In Which I am calling Draw Method of Objects
andCode:OnPaint(CDC *pDC) { For(int i=0;i<Count;i++) { CShape *temp=GetShape(i); temp->Draw(pDC); } }
CShape as well as Derived classes implemented Draw() method.
I want to ignore the draw code if it does'nt lies in invalidate region.Code:CMyRect::Draw(CDC *pDC) { //Some Code // pDC->Rectangle(...); } CMyDate::Draw(CDC *pDC) { //Some Code pDC->....... }
How to do this ? Is there any API for getting invalidate region.Code:CMyDate::Draw(CDC *pDC) { if(InvalidateRgn Overlaps this object Rect) { //Some Code pDC->....... } else { //Ignore } }
How to get Update Rect Inside Paint() ? as its get cleared after beginpaint call !
Thanks !
-Anant




Reply With Quote