In the Windows cef_client application when setting the window as the top most window the HTML select boxes do not show.
- Code: Select all
case WM_CREATE: {
// Create the single static handler class instance
g_handler = new ClientHandler();
g_handler->SetMainHwnd(hWnd);
// set as top most
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
I have tried using the "browser->GetHost()->GetWindowHandle()" in the client_handler but this does not make a difference.
- Code: Select all
void ClientHandler::OnAfterCreated(CefRefPtr<CefBrowser> browser) {
REQUIRE_UI_THREAD();
// set as top most
HWND hWnd = browser->GetHost()->GetWindowHandle();
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
Example test page:
http://www.w3schools.com/tags/tryit.asp ... tml_select
This has been tested on Windows with the following CEF3 versions:
Windows 32bit 2014-07-18 CEF 3.2078.1780
Windows 32bit 2014-07-18 CEF 3.1916.1781
Windows 32bit 2014-07-18 CEF 3.1750.1738
--Scott