Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I am working on a drawing application like paintbrush. I am using VS2005. It is working very nicely on winXP, but 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 a form as child form of main form and i am drawing on main form. While moving this child form over drawing drawn by user, that form works as eraser which erases all drawing.

I am not getting these issues on WinXP. But i am facing these issues in Win7.

I am not getting any workaround other than switching off auro. But i don't want to do that.
Anyone have any clue or any workaround for this issue?


Thanks,
SD
Posted

1 solution

Sounds to me that it accidentially works on Windows XP and does not work anymore on Windows 7.

So for me, your design seems to be broken. Do you react correctly to paint events for your window/control? Do you set the correct window styles, telling the system who's responsible for drawing? Do you handle the background paint event correctly?

Cheers
Uwe
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900