mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
feat: Graphics Capture
This commit is contained in:
parent
68b9656192
commit
3ed697cba0
11 changed files with 889 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue