[英]How to disable and enable the window refresh when click on the top-left app icon?
How to disable and enable the window refresh when click on the top-left app icon? 单击左上角的应用程序图标时如何禁用和启用窗口刷新?
For example, in window every .exe has a icon in its top-left sign, when we right click on that icon, some application stop refresh its window(For example, if the applicaiton has text-input, when you left-click on the top-left icon, the cursor in the text-input will stop blink), and for some other application, when you lef-click on the top-left icon, the application window will still refresh, how to enable or disable this? 例如,在窗口中,每个.exe的左上角都有一个图标,当我们右键单击该图标时,某些应用程序会停止刷新其窗口(例如,如果应用程序具有文本输入,则在您单击鼠标左键时(左上角的图标,文本输入中的光标将停止闪烁),对于其他一些应用程序,当您左键单击左上角的图标时,应用程序窗口仍将刷新,如何启用或禁用它?
Any code example is welcome, the question is urgent, please give your help. 欢迎任何代码示例,紧急问题,请提供帮助。
Thanks a lost. 多亏了 Wa
娃
It's a standard menu behavior implemented with Windows. 这是Windows实施的标准菜单行为。 It's better not to override it as it's really painful.
最好不要重写它,因为它确实很痛苦。 You can also put aa wait logic (using WaitForSingleObject) or Sleep for a while but that will make the application unresponsive.
您还可以放置一个等待逻辑(使用WaitForSingleObject)或休眠一段时间,但这会使应用程序无响应。
If you can explain the purpose, we might be able to help you better. 如果您能解释目的,我们也许可以为您提供更好的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.