在Windows7中打开上下文菜单后图形被清除 [英] Drawing gets cleared on opening of context Menu in Windows7

查看:137
本文介绍了在Windows7中打开上下文菜单后图形被清除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在研究画笔等绘图应用程序.我正在使用VS2005.它在winXP上运行非常好,但是在Windows7上却出现了一些问题.
1.在打开上下文菜单时,将自动清除用户绘制的图形.
2.我添加了一个表单作为主表单的子表单,并且我正在使用主表单.在将此子窗体移动到用户绘制的图形上时,该窗体用作擦除所有图形的橡皮擦.

我在WinXP上没有遇到这些问题.但是我在Win7中面临这些问题.

除了关闭auro之外,我没有其他解决方法.但是我不想那样做.
任何人对此问题有任何线索或解决方法吗?


谢谢,
SD

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

推荐答案

对我来说,它偶然在Windows XP上可以正常运行,而在Windows 7上不再可以正常运行.

所以对我来说,您的设计似乎已损坏.您对窗口/控件的绘制事件做出了正确的反应吗?您是否设置了正确的窗口样式,告诉系统谁负责绘制?您是否正确处理了背景绘画事件?

干杯
Uwe
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


这篇关于在Windows7中打开上下文菜单后图形被清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆