Thread: Who's on top?

  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, 06:12 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 05:16 PM
  4. Odd 3D Invis Objects?
    By Zeusbwr in forum Game Programming
    Replies: 4
    Last Post: 12-07-2004, 07:01 PM
  5. Stack functions as arrays instead of node pointers
    By sballew in forum C Programming
    Replies: 8
    Last Post: 12-04-2001, 11:13 AM