I am using CDC::Ellipse() to draw points on the screen in onDraw( ) function of an MDI based MFC application. The problem is that upto a certain number of points CDC::Ellipse() works correctly, but after passing a certain threshold CDC::Ellipse() returns zero and no more points gets displayed on the screen. This threshold starts decreasing with each subsequent invocation of onDraw() function. Please kindly help me regarding what is being wrongly done. Thank-you very much!