Who's on top?

This is a discussion on Who's on top? within the Windows Programming forums, part of the Platform Specific Boards category; In win32, is it the order in which the windows are created that dictates which is on top? More specifically, ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    51

    Who's on top?

    In win32, is it the order in which the windows are created that dictates which is on top? More specifically, I have a main window which creates several child windows, one child window of which I would like to spawn a child window. When I try it, I can't see the last child window.

    I am a novice at windows so there are many other reasons it may not be there, but one thing I just plain ol' don't know is what dictates the order of overlapping and does painting of windows below a child draw over the topmost child. Does the order of who's on top remain the same through out the run of the program, or does that change too?

    Thanks in advance

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    z-order.

    That should explain the relationship, read the rest of that page for functions that can be used to find or modify the z-order, for example SetWindowPos and BringWindowToTop.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    51

    great!

    That's exactly what I wanted to know!

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make opengl draw in lighter colors ?
    By jabka in forum Game Programming
    Replies: 2
    Last Post: 12-17-2007, 05:12 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 05:23 AM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 04:16 PM
  4. Odd 3D Invis Objects?
    By Zeusbwr in forum Game Programming
    Replies: 4
    Last Post: 12-07-2004, 06:01 PM
  5. Stack functions as arrays instead of node pointers
    By sballew in forum C Programming
    Replies: 8
    Last Post: 12-04-2001, 10:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21