| 863 | } |
| 864 | |
| 865 | void BrowserWindow::UpdateMinWindowSize() |
| 866 | { |
| 867 | RECT clientRect; |
| 868 | RECT windowRect; |
| 869 | |
| 870 | GetClientRect(m_hWnd, &clientRect); |
| 871 | GetWindowRect(m_hWnd, &windowRect); |
| 872 | |
| 873 | int bordersWidth = (windowRect.right - windowRect.left) - clientRect.right; |
| 874 | int bordersHeight = (windowRect.bottom - windowRect.top) - clientRect.bottom; |
| 875 | |
| 876 | m_minWindowWidth = GetDPIAwareBound(MIN_WINDOW_WIDTH) + bordersWidth; |
| 877 | m_minWindowHeight = GetDPIAwareBound(MIN_WINDOW_HEIGHT) + bordersHeight; |
| 878 | } |
| 879 | |
| 880 | void BrowserWindow::CheckFailure(HRESULT hr, LPCWSTR errorMessage) |
| 881 | { |
nothing calls this directly
no outgoing calls
no test coverage detected