Permanently set window to bottom?
-
Is there any way to permanently set a window to the bottom of the stack? I know you can send it to the back using: void setbottom(ref Window window) { IntPtr hWnd = new WindowInteropHelper(window).Handle; SetWindowPos(hWnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); } However that method needs to be called every time something else goes to the back. So is there any way make a window permanently set to the back? - Munty
-
Is there any way to permanently set a window to the bottom of the stack? I know you can send it to the back using: void setbottom(ref Window window) { IntPtr hWnd = new WindowInteropHelper(window).Handle; SetWindowPos(hWnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); } However that method needs to be called every time something else goes to the back. So is there any way make a window permanently set to the back? - Munty
I seriously doubt that you could. What would happen if you had two applications that tried to do this? Why would you want to do this?
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
-
I seriously doubt that you could. What would happen if you had two applications that tried to do this? Why would you want to do this?
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.
It's an alternate desktop. (Most normal windows functions are gone, and some specific functions are included) As for what happens when two programs do this, I'd assume that the first program to do it would have priority. After some digging around on my own, in microsofts MSDN website, there's apparently a AlwaysOnBottom setting in Object, but it seems to be for only VB. I was kind of hopping there was something similar for C#. (As far as I can tell it acts the opposite of the AlwaysOnTop setting(which in itself is basically what things like TaskManager use. Apparently.))