This code draw a rectange of green colour. This image gets refreshed everytime whenever it is resized.
for(int y=0; y<=600; y++)
for(int x=0; x<=600; x++)
As far as i could knoew is WM_PAINT is ahandler which call ONDRAW() through ONPAINT().. Correct me if I am wrong.
Now How do i avoid this refreshing of images. also How will I save this bitmap image generated using setpixel(). Please any one could suggest me and help me out.
FYI I am a learner in visual C++ and I am learning it by solving some of my own problems and examples framed by myself.