Results 1 to 3 of 3

Thread: Windows Z pos?

  1. #1

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024

    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


  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  3. #3

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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
  •  



Click Here to Expand Forum to Full Width