mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
12 lines
261 B
C++
12 lines
261 B
C++
#pragma once
|
|
#include "windef.h"
|
|
|
|
class DPIAware {
|
|
private:
|
|
static const int DEFAULT_DPI = 96;
|
|
|
|
public:
|
|
static HRESULT GetScreenDPIForWindow(HWND hwnd, UINT & dpi_x, UINT & dpi_y);
|
|
static void Convert(HMONITOR monitor_handle, int &width, int &height);
|
|
};
|