Toggle a window from always on top to bottom
Posted: Mon Feb 24, 2014 2:09 am
I've got a window which I've "pinned" to the desktop so it's
always underneath all other windows:
And it works totally fine. But now I need to toggle it so that
it's sometimes on top of all other windows for a while. I tried
this, but it doesn't work:
Normally the SetWindowPos line does it, but it's failing because
of SetParent. What else can I try? Thanks.
always underneath all other windows:
Code: Select all
SetParent_(WindowID(win),FindWindow_(0,"Program Manager"))it's sometimes on top of all other windows for a while. I tried
this, but it doesn't work:
Code: Select all
SetParent_(WindowID(win),0)
SetWindowPos_(WindowID(win),#HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)of SetParent. What else can I try? Thanks.