On top child

Archives Forums/Win32 Discussion/On top child

Picklesworth(Posted 2005) [#1]
How can I set a window in my application so that it will not ever go behind one of its siblings, or one of its siblings' children?
The situation is as follows:
			Main Window
			    |
______________________________________________________
  |			   |		      |
VisWin			SideBar		Moveable window
  |
Blitz Runtime Window

The window that is going behind other windows that I don't want to is "Moveable window."

I'm assuming it's a style to be set. I've already tried
SetWindowPos blah blah blah,WS_EX_TOPMOST
However, that window style seems to only work on the application's main window (the window that is a direct child of the desktop window).

Okay... Long story short (again): I want either every other window to go behind "Moveable window", or "Moveable window" to go on top of every other window in my application.



Sort of relaated (this could actually solve all my problems):
Is there a way to make all of my program's child windows a bit more connected to the main window? For example, so that clicking on a child window doesn't put the main window out of focus (as though the child window and the main window are the exact same window). That would also solve the problem that I'm having.


Picklesworth(Posted 2005) [#2]
Okay, sort of figured it out.

Can I get win32 to lock a window's position in the z-order so that it never changes?


Edit:
Ah, panels.
Figured the whole thing out now. That only took me... 10 days.