- Code: Select all
class WindowDelegate : public CefWindowDelegate {
public:
explicit WindowDelegate(CefRefPtr<CefBrowserView> browser_view)
: browser_view_(browser_view) {}
void OnWindowCreated(CefRefPtr<CefWindow> window) OVERRIDE
{
// Add the browser view and show the window.
window->AddChildView(browser_view_);
window->CenterWindow(CefSize(800, 600));
window->SetTitle("test");
window->Show();
// Give keyboard focus to the browser view.
browser_view_->RequestFocus();
}
I use the views framework, and i don't know how to change the background color of title bar(default is white)