|
-
Apr 1st, 2002, 06:11 PM
#1
Thread Starter
Frenzied Member
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?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Apr 1st, 2002, 07:28 PM
#2
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.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 1st, 2002, 07:37 PM
#3
Thread Starter
Frenzied Member
I thought about that after playing for awhile
I think I can make it work by using GetForegroundWindow() in my WM_PAINT
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|