C++ Programming
07-24-2012, 04:00 PM
Hi,
I have a picture control on a dialog box in MFC. I'll load an image onto that picture control. I'll draw a line on that image. I want to perform undo/redo functionality in for the drawing. I have done that by saving the bitmaps at each point in LButtonDown, but that thing was not working as when I click on Undo, reload the previous image, I can'n continue drawing the line. If I draw a line, it will not be the same line it will be drawn as a new line.
Can anybody have an idea regarding this.?
Regards,
I have a picture control on a dialog box in MFC. I'll load an image onto that picture control. I'll draw a line on that image. I want to perform undo/redo functionality in for the drawing. I have done that by saving the bitmaps at each point in LButtonDown, but that thing was not working as when I click on Undo, reload the previous image, I can'n continue drawing the line. If I draw a line, it will not be the same line it will be drawn as a new line.
Can anybody have an idea regarding this.?
Regards,