feat: Graphics Capture

This commit is contained in:
刘旭 2023-06-11 20:39:29 +08:00
commit 3ed697cba0
11 changed files with 889 additions and 17 deletions

View file

@ -16,8 +16,11 @@ static bool IsCandidateWindow(HWND hWnd) {
return false;
}
RECT frameRect;
if (!Win32Utils::GetWindowFrameRect(hWnd, frameRect)) {
RECT frameRect{};
HRESULT hr = DwmGetWindowAttribute(hWnd,
DWMWA_EXTENDED_FRAME_BOUNDS, &frameRect, sizeof(frameRect));
if (FAILED(hr)) {
return false;
}