Updates the sizing and positioning of everything in the window.
| 2587 | |
| 2588 | // Updates the sizing and positioning of everything in the window. |
| 2589 | void AppWindow::ResizeEverything() |
| 2590 | { |
| 2591 | RECT availableBounds = {0}; |
| 2592 | GetClientRect(m_mainWindow, &availableBounds); |
| 2593 | |
| 2594 | if (!m_containsFullscreenElement |
| 2595 | && !m_webviewOption.useWco |
| 2596 | ) |
| 2597 | { |
| 2598 | availableBounds = m_toolbar.Resize(availableBounds); |
| 2599 | } |
| 2600 | |
| 2601 | if (auto view = GetComponent<ViewComponent>()) |
| 2602 | { |
| 2603 | view->SetBounds(availableBounds); |
| 2604 | } |
| 2605 | m_appBackgroundImageRect = availableBounds; |
| 2606 | } |
| 2607 | |
| 2608 | //! [Close] |
| 2609 | // Close the WebView and deinitialize related state. This doesn't close the app window. |