diff options
Diffstat (limited to '')
-rw-r--r-- | src/dutil/inc/dpiutil.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dutil/inc/dpiutil.h b/src/dutil/inc/dpiutil.h index c6f73b02..8c61ab19 100644 --- a/src/dutil/inc/dpiutil.h +++ b/src/dutil/inc/dpiutil.h | |||
@@ -14,6 +14,12 @@ extern "C" { | |||
14 | #define USER_DEFAULT_SCREEN_DPI 96 | 14 | #define USER_DEFAULT_SCREEN_DPI 96 |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | typedef struct _DPIU_MONITOR_CONTEXT | ||
18 | { | ||
19 | UINT nDpi; | ||
20 | MONITORINFOEXW mi; | ||
21 | } DPIU_MONITOR_CONTEXT; | ||
22 | |||
17 | typedef struct _DPIU_WINDOW_CONTEXT | 23 | typedef struct _DPIU_WINDOW_CONTEXT |
18 | { | 24 | { |
19 | UINT nDpi; | 25 | UINT nDpi; |
@@ -33,6 +39,15 @@ void DAPI DpiuInitialize(); | |||
33 | void DAPI DpiuUninitialize(); | 39 | void DAPI DpiuUninitialize(); |
34 | 40 | ||
35 | /******************************************************************** | 41 | /******************************************************************** |
42 | DpiuGetMonitorContextFromPoint - get the DPI context of the monitor from the given point. | ||
43 | |||
44 | *******************************************************************/ | ||
45 | HRESULT DAPI DpiuGetMonitorContextFromPoint( | ||
46 | __in const POINT* pt, | ||
47 | __out DPIU_MONITOR_CONTEXT** ppMonitorContext | ||
48 | ); | ||
49 | |||
50 | /******************************************************************** | ||
36 | DpiuGetWindowContext - get the DPI context of the given window. | 51 | DpiuGetWindowContext - get the DPI context of the given window. |
37 | 52 | ||
38 | *******************************************************************/ | 53 | *******************************************************************/ |