MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / GetInitialMonitor

Method GetInitialMonitor

TranslucentTB/uwp/basexamlpagehost.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30HMONITOR BaseXamlPageHost::GetInitialMonitor(POINT &cursor, xaml_startup_position position)
31{
32 if (position == xaml_startup_position::mouse)
33 {
34 if (!GetCursorPos(&cursor))
35 {
36 LastErrorHandle(spdlog::level::info, L"Failed to get cursor position");
37 }
38 }
39
40 return MonitorFromPoint(cursor, MONITOR_DEFAULTTOPRIMARY);
41}
42
43float BaseXamlPageHost::GetDpiScale(HMONITOR mon)
44{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected