MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / extend_client_area

Function extend_client_area

core/src/utils/window.cc:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90#define IsWin11_22H2() (winver().build >= 22523/*22621*/)
91
92static void extend_client_area(HWND hwnd, int inset)
93{
94 if (auto func = getfunc("dwmapi.dll", DwmExtendFrameIntoClientArea))
95 {
96 MARGINS margins{ inset, inset, inset, inset };
97 if (inset > 0) margins = { 0, 0, inset, 0 };
98 func(hwnd, &margins);
99 }
100}
101
102static void set_window_attribute(HWND hwnd, DWORD attr, DWORD value)
103{

Callers 3

enable_shadowMethod · 0.85
apply_vibrancyMethod · 0.85
clear_vibrancyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected