MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / ExitFullScreen

Method ExitFullScreen

SampleApps/WebView2APISample/AppWindow.cpp:2924–2934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2922}
2923
2924void AppWindow::ExitFullScreen()
2925{
2926 DWORD style = GetWindowLong(m_mainWindow, GWL_STYLE);
2927 ::SetMenu(m_mainWindow, m_hMenu);
2928 SetWindowLong(m_mainWindow, GWL_STYLE, style | WS_OVERLAPPEDWINDOW);
2929 SetWindowPos(
2930 m_mainWindow, NULL, m_previousWindowRect.left, m_previousWindowRect.top,
2931 m_previousWindowRect.right - m_previousWindowRect.left,
2932 m_previousWindowRect.bottom - m_previousWindowRect.top,
2933 SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
2934}
2935
2936// We have our own implementation of DCompositionCreateDevice2 that dynamically
2937// loads dcomp.dll to create the device. Not having a static dependency on dcomp.dll

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected