[英]DwmRegisterThumbnail unable to capture browser when its on background
Im using the winapi DwmRegisterThumbnail to capture the browser thumbnail to my GUI, however when i move the browser to background it stop rendering the thumbnail, my thought its a browser setting to reduce use of resources or something like?我使用 winapi DwmRegisterThumbnail将浏览器缩略图捕获到我的 GUI,但是当我将浏览器移到后台时它停止呈现缩略图,我认为它是一种浏览器设置以减少资源使用或类似的东西?
If i move the mouse over the browser at the taskbar, it creates the thumbnail and start capturing it, however as soon the thumbnail is closed it stops capturing.如果我将鼠标移到任务栏的浏览器上,它会创建缩略图并开始捕获它,但是一旦缩略图关闭,它就会停止捕获。
It only happens on browsers
(tested chrome, edge and opera), i also have tested many other applications and i was able to capture the thumbnail correctly even when these windows was on background.它只发生在
browsers
上(经过测试的 chrome、edge 和 opera),我还测试了许多其他应用程序,即使这些 windows 在后台,我也能够正确捕获缩略图。
Does someone know something about it?有人知道吗?
I was able to solve it by changing the flag:我能够通过更改标志来解决它:
chrome://flags/#calculate-native-win-occlusion
From "default" to "disabled".从“默认”到“禁用”。
source: https://www.reddit.com/r/incremental_games/comments/l1eec1/psa_disable_window_occlusion_calculation_on/来源: https://www.reddit.com/r/incremental_games/comments/l1eec1/psa_disable_window_occlusion_calculation_on/
Thank you zett42
for pointing it!谢谢
zett42
指点!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.