简体   繁体   中英

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). 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. This could be a certain window in Excel, or an open pdf document in Abode reader or whatever.

My question is: Can this be implemented as AN independent API where one would for instance be able to call the following ?

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. MFC is also OK. Thanx

The Spy++ tool draws frames around any window. Source code for several Spy++ versions is available on the net.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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