简体   繁体   English

单击左上角的应用程序图标时如何禁用和启用窗口刷新?

[英]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.

相关问题 如何在DirectX 9中设置左上角坐标? - How to set top-left coordinates in DirectX 9? 来自C ++资源的对话框上的左上角图标 - top-left corner icon on a dialog from resources in C++ 在OpenGL中使用左上角原点 - Use top-left origin in OpenGL 指定QMenu的左上角位置 - Specify top-left corner position for QMenu 如何制作带有关闭按钮且窗口左上角没有图标/菜单的窗口? - How can I make a window with a close button and no icon/menu to the top left of the window? 如何更改.exe的图标:任务栏,在左上角,当按下Alt-Tab时的图标 - How to change icon of: taskbar, in the top left corner, icon when Alt-Tab is pressed, of my .exe 如何以小于指数的时间复杂度找到矩阵中从左上角到右下角的路径乘积? - How to find the product of paths in a matrix from top-left to bottom-right in less than exponential time complexity? 如何禁用最小化任务栏图标单击 - How to disable minimizing by taskbar icon click 当鼠标悬停在边框上时,如何完全禁用调整窗口大小,包括调整大小图标? - how can I fully disable resizing a window including the resize icon when the mouse hovers the border? QT QTextBrowser左键单击时禁用写位置 - QT QTextBrowser disable write position when left-click
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM