开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜