简体   繁体   English

在第三方应用程序的窗口顶部绘图

[英]Drawing on top of a window of a third party application

Here is a description of my use case: 这是我的用例的描述:

I have a Windows application that comprised of the main window and it also creates child windows (think of MS Word for instance). 我有一个包含主窗口的Windows应用程序,它还创建了子窗口(例如,以MS Word为例)。 What i want to do is draw frames around certain children windows of a given application. 我想做的是在给定应用程序的某些子窗口周围绘制框架。 Note that when i say window i mean any visible HWND (handle) in the system. 请注意,当我说窗口时,是指系统中任何可见的HWND(句柄)。 This could be a certain window in Excel, or an open pdf document in Abode reader or whatever. 这可以是Excel中的某个窗口,也可以是Abode阅读器中的打开的pdf文档,等等。

My question is: Can this be implemented as AN independent API where one would for instance be able to call the following ? 我的问题是:是否可以将其实现为一种独立的API,例如可以调用以下API?

DrawOutline(HWND, OutlineColor, Thikness);

Any pointers as to how to approach this ? 关于如何处理此问题的任何指示? Any limitations one might think of? 人们可能会想到什么限制? This would not be a plugin to a specific application but a stand alone API. 这不是特定应用程序的插件,而是独立的API。 MFC is also OK. MFC也可以。 Thanx 感谢名单

The Spy++ tool draws frames around any window. Spy ++工具在任何窗口周围绘制框架。 Source code for several Spy++ versions is available on the net. 网上有多个Spy ++版本的源代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM