Jump to content
Sign in to follow this  

Registrering messages from other windows.

Recommended Posts


Alright so here's my situation:

I got a window (not owned by me), which i would like like to draw some information on. I do this by adding a transparent GUI window over the first, and using GDI.

It works perfectly, however, i want my transparent GUI to only show when the other is activated, and when the first moves, i want mine to move too. At the moment, i am solving this by a pretty large chunk of code involving constantly polling WinGetState() and WinGetPos() and sizing my program accordingly. This however uses a fair amount of resources, if i want my GUI to be somewhat responsible.

So, this could be solved much much better if i somehow could register the WM_WINDOWPOSCHANGED message like the original window recieves. I can retrieve the activate message using but as far as i can see, this doesn't register the message for moving windows.

Ideally i would like to do something like this:


But i understand it won't be so easy. I know you can use SetWindowsHookEx for this, but I'm also aware that you would have to inject an extern dll for this to work, which i would rather avoid.

Is my mission possible?

Regards :graduated:

Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.