mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-06 03:07:54 +08:00
12 lines
259 B
C
12 lines
259 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 &high);
|
||
|
};
|