I am using SetWindowPos() to try and send Windows to back/front of the z-order.
It seems to work for the most part however I am noticing for certain windows it just won’t work although the function will return success.
For example Window Task Manager seems to work perfectly fine but the other windows aren’t responding properly to the function call.
Any insights into what may be happening? I know the information is sparse however I am not sure what to include.
Pretty much seems to work using
SetForegroundWindow.From what I could discern it seems that using
SetWindowPosand setting a window toHWND_TOPwill make it top of the z-order following the foreground window.Meaning that once the foreground window is removed (minimized/closed) it will then be the next one at the TOP.