I want the window to be under everything so it is never on top .
How would I do that with code ?
Sit window on bottom
Re: Sit window on bottom
Add this after your window's creation, and your window will be "stuck" to the
Desktop, meaning that every other window will always cover it. Think of this
as an "always on bottom" setting for your window.
And for the record, here's how you set a window to be "always on top":
Desktop, meaning that every other window will always cover it. Think of this
as an "always on bottom" setting for your window.

Code: Select all
SetParent_(WindowID(),FindWindow_(0,"Program Manager"))
Code: Select all
SetWindowPos_(WindowID(),#HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)
Last edited by PB on Fri Mar 25, 2005 3:41 pm, edited 2 times in total.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.