将一个窗口镜像到另一个 [英] Mirroring one window to another

查看:28
本文介绍了将一个窗口镜像到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MFC 窗口对象,其中包含有关它的所有信息.我正在寻找一种将其镜像到另一个窗口的方法,以便两个窗口看起来相同.我听说可以通过 DWM 窗口预览来实现.

I have an MFC window object with all the information about it. I'm looking for a way to mirror it to another window so that both windows look identical. I've heard it's possible through DWM window previewing.

怎么做?

推荐答案

解决方案是我对源窗口使用 DWM 缩略图:

The solution was that I used DWM thumbnailing for the source window:

hr = DwmRegisterThumbnail();
hr = DwmUpdateThumbnailProperties();

正如@raymond-chen 建议的那样.

as @raymond-chen suggested.

这篇关于将一个窗口镜像到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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