Replies: 2 comments
-
I think something like that should work: static bool isFullscreen(HWND hwnd)
{
MONITORINFO info = { .cbSize = sizeof(MONITORINFO) };
if (!GetMonitorInfoW(MonitorFromWindow(hwnd, MONITOR_DEFAULTTOPRIMARY), &info)) {
return false;
}
RECT rect;
if (!GetWindowRect(hwnd, &rect)) {
return false;
}
return memcmp(&rect, &info.rcMonitor, sizeof(RECT)) == 0;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I detect whether the CASCADIA_HOSTING_WINDOW_CLASS class window is full screen using the Win32 API? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions