mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[FancyZones] Improve code quality (part 6) (#28034)
This commit is contained in:
@@ -123,6 +123,15 @@ namespace FancyZonesUtils
|
||||
monitorInfo = std::move(sortedMonitorInfo);
|
||||
}
|
||||
|
||||
std::vector<HMONITOR> GetMonitorsOrdered()
|
||||
{
|
||||
auto monitors = FancyZonesUtils::GetAllMonitorRects<&MONITORINFOEX::rcWork>();
|
||||
FancyZonesUtils::OrderMonitors(monitors);
|
||||
std::vector<HMONITOR> output;
|
||||
std::transform(std::begin(monitors), std::end(monitors), std::back_inserter(output), [](const auto& info) { return info.first; });
|
||||
return output;
|
||||
}
|
||||
|
||||
bool IsValidGuid(const std::wstring& str)
|
||||
{
|
||||
GUID id;
|
||||
|
||||
Reference in New Issue
Block a user