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

Method enable_shadow

core/src/utils/window.cc:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void window::enable_shadow(void *hwnd)
186{
187 HWND window = static_cast<HWND>(hwnd);
188
189 set_window_attribute(window, 2, 2);
190 extend_client_area(window, 1);
191
192 SetWindowPos(window, nullptr, 0, 0, 0, 0, SWP_FRAMECHANGED
193 | SWP_NOMOVE | SWP_NOSIZE | SWP_DRAWFRAME | SWP_NOACTIVATE);
194}
195
196bool window::is_dark_theme()
197{

Callers

nothing calls this directly

Calls 2

set_window_attributeFunction · 0.85
extend_client_areaFunction · 0.85

Tested by

no test coverage detected