simple_handler_win.cc 506 B

12345678910111213141516
  1. // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
  2. // reserved. Use of this source code is governed by a BSD-style license that
  3. // can be found in the LICENSE file.
  4. #include "simple_handler.h"
  5. #include <windows.h>
  6. #include <string>
  7. #include "include/cef_browser.h"
  8. void SimpleHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser,
  9. const CefString& title) {
  10. CefWindowHandle hwnd = browser->GetHost()->GetWindowHandle();
  11. SetWindowText(hwnd, std::wstring(title).c_str());
  12. }