Click to See Complete Forum and Search --> : Z-order with parent/child windows


tony field
April 21st, 1999, 08:51 PM
I have a parent window with multiple child windows. How can I make the parent window come to the foreground and display on top of the child windows when the user wished to "use" the parent window. This app does not use MFC.

dscott
April 22nd, 1999, 01:16 PM
Check out SetWindowPos() and SetForegroundWindow()

Dan O'Brien
April 22nd, 1999, 03:35 PM
It is in the fundamental nature of child windows to show on their parents. Even their coordinates are relative to their parents. It's not clear what you're trying to do, but if you want to make it appear that the parent is higher in the z-order, hide the children or move them outside the coordinates of the parent.