Hi,
I am working on a drawing application like paint. It is working very nicely on winXP, but on testing on windows7 it is giving some problem.
1. On Opening of context-menu, the drawing that user have drawn automatically gets cleared.
2. I have added one form as child form of other form and drawing on main form. While moving this child form over drawing drawn by user, that form work as eraser which erases all drawing.
I am not getting any workaround without switching off auro. But i don't want to do that.
Anyone have any clue or any workaround for this issue?
It is urgent.
Thanks,
SD
Loading
Sam HobbsPosted Dec 6, 2010, 7:29 PM
Are you familiar with the Paint (WM_PAINT) message? It sounds like you are not. It is something that is done every time a wndow is changed in the manner you describe, and the results you are getting is likely caused by not handling the Paint message properly. Using .Net, you probably do not need to handle the Paint message directly, but you need to understand Windows graphics well enough to be able to ensure that the Paint message draws the graphics properly.