如何在自己的窗口下捕获屏幕,不包括我自己的窗口 [英] How can I capture screen under my own window excluding my own window

查看:127
本文介绍了如何在自己的窗口下捕获屏幕,不包括我自己的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想编程一个放大镜,我如何捕获屏幕的内容,不包括我自己的窗口?
我知道如何用自己的窗口使用BitBlt和桌面DC捕获屏幕。



并使其更清晰:我想显示放大的内容在我的窗口中。



编辑:似乎没有其他的解决方案,而不是在我捕捉屏幕之前隐藏我的窗口(或客户区)内容在我的窗口下显然这会导致我的窗口闪烁,这使得这个场景变得无用。

解决方案

在捕获过程中设置窗体 AlphaBlend 属性为true,将 AlphaBlendValue 更改为0.请注意,这将使您的表单完全不可见。


Assuming I would like to program a magnifier, how could I capture the content of the screen excluding my very own window ? I know how to capture the screen with my own window using BitBlt and the Desktop DC.

And to make it clearer: I want to show the magnified content in my window.

Edit: It seems that there is no other solution than to hide my window (or the client area) one way or another before I can capture the screen content under my window. Apparently this causes my window to flicker which renders this scenario pretty useless.

解决方案

During the capture process set the forms AlphaBlend property to true and the AlphaBlendValue to 0. Be aware that this will make your form completely invisible.

这篇关于如何在自己的窗口下捕获屏幕,不包括我自己的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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