10-25-2000, 06:47 PM
I am looking for a way to make a form stay one "layer" above another application's window.
I can make the form stay on top of every other window, not what I need to do. I only need it to stay "above" a specific application window.
10-25-2000, 07:20 PM
You could always use a timer... then constantly check to see if the certain app is active using GetActiveWindow and check if it matches the specified hWnd. If it is active, then you would put your window on top... if its not... dont put it on top.
dont understand? maybe i could show u an example
10-25-2000, 07:42 PM
That makes sense. I already have a timer doing some other stuff related to keeping the form located in a certain way.
An example would be great if you have a minute.
10-26-2000, 08:26 PM
so.. attached is the basic idea of how you would do it. Its a little shabby, but you can polish it up anyway you want. The app i used is calculator. good luk.. any questions? feel free to ask me. I did it in like 5 minutes, so its not the best!
10-26-2000, 08:30 PM
i forgot to post the attachment. I am so used to unchecking the "I want to preview my post and/or attach a file" and i didn't pay attention... so.. this time, it is attached!!
10-27-2000, 01:49 PM
Thank you for the example. It helped.