VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Window Selector (Like SPY++)

Jolyon Bloomfield  (9 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Here's a little bit of code that I'm using in one of my apps. I slaved over it for 3 nights, so I thought that others might also like to use it. Basically, it Displays a bounding box around the window that the cursor is over, just like selecting a window in Microsoft SPY++. (I decompiled it and monitored it and used dependancies and all sorts of junk from there too, in hope of imitating it). So here it is.
This code snippet uses window regions, hDC's, System Objects, and basically complex drawing API's. It also shows how to clean up after yourself (I.e., Release memory correctly).
Although it uses advanced techniques, you should get an idea of how graphics sort of work from here. Highly commented code, so as to maximise the knowledge that you can get from here.
Please leave comments, as the feedback makes the program. If you like it, please vote :o)
Jolyon Bloomfield February 2000

Assumes
Fancy Stuph using lots of Window API calls

Side Effects
None known, unless your app hangs

Rate Window Selector (Like SPY++) (9(9 Vote))
Window Selector (Like SPY++).bas

Window Selector (Like SPY++) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters