This code draw a rectange of green colour. This image gets refreshed everytime whenever it is resized.Code:ONDRAW(CDC *pDC) for(int y=0; y<=600; y++) { for(int x=0; x<=600; x++) pDC->SetPixel(x,y,RGB(0,255,0)); }
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.




Reply With Quote
