-
Windows Z pos?
Is there any way to get a windows z position compared to any other windows opened?
The reason I ask is that I have two windows that are supposed to be attached to each other. The problem I have is if I bring another window infront of these two, then click back to one of those two windows, I want the other window of that program to come to front with the one I clicked on. So is there a way to check to see if there z position is not equal?
-
Well, technically, the z orders would never be equal, I don't think, but when one of the windows is activated, you can can SetForegroundWindow on the other, bringing it to the front, then call it again for the window that was activated. Then they will both be on the top.
:)
-
I thought about that after playing for awhile
I think I can make it work by using GetForegroundWindow() in my WM_PAINT