MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / SetTopmost

Method SetTopmost

IntelPresentMon/Core/source/win/Window.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void Window::SetTopmost()
78 {
79 pmlog_verb(v::core_window)();
80 if (SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE) == FALSE)
81 {
82 pmlog_warn(std::format("failed to make window topmost {}", str::ToNarrow(GetTitle()))).hr();
83 }
84 }
85
86 void Window::ClearTopmost()
87 {

Callers 1

UpdateTargetOrderMethod · 0.80

Calls 1

ToNarrowFunction · 0.85

Tested by

no test coverage detected