CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

Title for Popup window

Open apn99 opened this issue 13 years ago • 2 comments

Titles are not shown , when opening a link in the pop up window. Do you have know about this issue or am I missing something?. The title in popup window is working in the chromium cefclient...Also noticed that the pop up window icon is not same as Web view window icon. currently popup icon shows some default icon.

apn99 avatar Apr 05 '12 14:04 apn99

Here is the fix I made in the clientAdapter.cpp file in the eventhandler OnTitleChange. Please let me know,if the fix looks OK for displaying popup titles. void ClientAdapter::OnTitleChange(CefRefPtr<CefBrowser> browser, const CefString& title) { HWND lHwnd = browser->GetWindowHandle(); if(_browserHwnd == lHwnd) { _browserControl->Title = toClr(title); } else { SetWindowText(lHwnd, std::wstring(title).c_str()); } }

apn99 avatar Apr 12 '12 14:04 apn99

actually it looks like ClientAdapter::OnTitleChange() always updates the title of the parent window, regardless of which popup window's title actually changed. will investigate.

ataranto avatar Mar 08 '13 01:03 ataranto