well I am aware of the InvalidateRect function ... the problem is it calls the OnDraw() function which I don't want since this call will be made from a switch statment in OnDraw .... so it will jump into an infinite loop ..... I just need a function which can wipe put what i drew on the screen previously ...... any clues