SetWindowPos doesn't work with put_Visible(false)
I am trying to use SetWindowPos
to put a new opened IE window in the background.
The problem is that it only works after I use put_Visible(VARIANT_TRUE)
. While the window is not visible, SetWindowPos
won't do anything. If I use put_Visible(VARIANT_TRUE)
before SetWindowPos
this makes the window to appear on top for a开发者_C百科 second, and then go to the back.
How can I avoid this and make the new window appear in the background without appearing first on top?
Here is what I tried:
HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE
using put_Visible(VARIANT_TRUE)
before SetWindowPos
, and then it works, but it shows on top of all windows before going to the back.
精彩评论