Closed GoogleCodeExporter closed 9 years ago
Committed as revision 200. Changes were required in a few other places as well.
I've also added a test (define TEST_REDIRECT_POPUP_URLS in cefclient.cpp) that
demonstrates how to use a hidden window to redirect popup URL loading.
Original comment by magreenb...@gmail.com
on 8 Mar 2011 at 1:12
if (window_info_.m_dwStyle & WS_VISIBLE)
flags |= SWP_SHOWWINDOW;
else
flags |= SWP_NOACTIVATE;
I've changed the above code into the following:
UINT flags = SWP_NOZORDER | SWP_SHOWWINDOW;
if (!(window_info_.m_dwStyle & WS_VISIBLE))
flags |= SWP_NOACTIVATE;
If window_info.m_dwStyle isn't WS_VISIBLE at first, the child WebViewHost isn't
WS_VISIBLE either, then call ShowWindow() only effect the CefBrowserWindow, not
the WebViewHost, so WebViewHost window must have the WS_VISIBLE property.
If the window_info_.m_dwStyle doesn't have WS_VISIBLE, the child WebViewHost
can't be seen even if it has WS_VISIBLE property.
So WebViewHost must have the WS_VISIBLE property.
Original comment by Zhaojun....@gmail.com
on 30 Dec 2011 at 7:50
Please create a separate issue for comment#2 so it doesn't get lost.
Original comment by magreenb...@gmail.com
on 11 Jan 2012 at 10:38
Original issue reported on code.google.com by
emerick
on 7 Mar 2011 at 8:09Attachments: