-1

I'm using CEF and have built the cefsimple.exe. I can include any html file to the simple_app.cpp which will start after the doubleclick. But how is it possible to start this cefsimple.exe in fullscreen mode? Which build do I need? I work with VS2013 on a win64 system.

SimpleApp::SimpleApp() {
}

void SimpleApp::OnContextInitialized() {
CEF_REQUIRE_UI_THREAD();

// Information used when creating the native window.
CefWindowInfo window_info;



 #if defined(OS_WIN)
  // On Windows we need to specify certain flags that will be passed to
  // CreateWindowEx().
  window_info.SetAsPopup(NULL, "cefsimple");

// my first try: *************************************
 /* RECT winrect;
  winrect.bottom = 0;
  winrect.left = 0;
  winrect.right = 0;
  winrect.top = 0;

  window_info.SetAsChild(NULL, winrect);*/

#endif

  // SimpleHandler implements browser-level callbacks.
  CefRefPtr<SimpleHandler> handler(new SimpleHandler());

  // Specify CEF browser settings here.
  CefBrowserSettings browser_settings;

  

  std::string url;

  // Check if a "--url=" value was provided via the command-line. If so, use
  // that instead of the default URL.
  CefRefPtr<CefCommandLine> command_line =
      CefCommandLine::GetGlobalCommandLine();
  url = command_line->GetSwitchValue("url");
  if (url.empty())
    url = "file:///C:/Projekte/BOF-WENDT-HTML5/Fullscreen.html";

  // Create the first browser window.
  CefBrowserHost::CreateBrowser(window_info, handler.get(), url,
                                browser_settings, NULL);
}
Jason Aller
  • 3,541
  • 28
  • 38
  • 38
  • I tried to use HTML code with element.requestFullScreen() but this has only effect in the browser, not in cefsimple. So I think there must be some C code to do this. – Martin Stottmeister Oct 31 '14 at 11:15
  • what I meant was: place some code samples of what you have tried and point us to exactly where you want improvements – Ares Draguna Oct 31 '14 at 11:16

1 Answers1

0

Not yet implemented in CEF, see: https://code.google.com/p/chromiumembedded/issues/detail?id=562

Update: Changes for this feature have landed https://bitbucket.org/chromiumembedded/cef/issue/562

Community
  • 1
  • 1
Czarek Tomczak
  • 20,079
  • 5
  • 49
  • 56