mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Add setting to allow to choose if the FZ editor opens in the screen where mouse cursor is or where the active windows is.
13 lines
335 B
C++
13 lines
335 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 HRESULT GetScreenDPIForPoint(POINT p, UINT& dpi_x, UINT& dpi_y);
|
|
static void Convert(HMONITOR monitor_handle, int &width, int &height);
|
|
};
|