diff options
Diffstat (limited to 'src/dutil/inc/dpiutil.h')
-rw-r--r-- | src/dutil/inc/dpiutil.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/dutil/inc/dpiutil.h b/src/dutil/inc/dpiutil.h index 8c61ab19..4ea689c5 100644 --- a/src/dutil/inc/dpiutil.h +++ b/src/dutil/inc/dpiutil.h | |||
@@ -25,6 +25,13 @@ typedef struct _DPIU_WINDOW_CONTEXT | |||
25 | UINT nDpi; | 25 | UINT nDpi; |
26 | } DPIU_WINDOW_CONTEXT; | 26 | } DPIU_WINDOW_CONTEXT; |
27 | 27 | ||
28 | typedef BOOL (APIENTRY* PFN_ADJUSTWINDOWRECTEXFORDPI)( | ||
29 | __in LPRECT lpRect, | ||
30 | __in DWORD dwStyle, | ||
31 | __in BOOL bMenu, | ||
32 | __in DWORD dwExStyle, | ||
33 | __in UINT dpi | ||
34 | ); | ||
28 | typedef HRESULT (APIENTRY *PFN_GETDPIFORMONITOR)( | 35 | typedef HRESULT (APIENTRY *PFN_GETDPIFORMONITOR)( |
29 | __in HMONITOR hmonitor, | 36 | __in HMONITOR hmonitor, |
30 | __in MONITOR_DPI_TYPE dpiType, | 37 | __in MONITOR_DPI_TYPE dpiType, |
@@ -39,6 +46,20 @@ void DAPI DpiuInitialize(); | |||
39 | void DAPI DpiuUninitialize(); | 46 | void DAPI DpiuUninitialize(); |
40 | 47 | ||
41 | /******************************************************************** | 48 | /******************************************************************** |
49 | DpiuAdjustWindowRect - calculate the required size of the window rectangle, | ||
50 | based on the desired size of the client rectangle | ||
51 | and the provided DPI. | ||
52 | |||
53 | *******************************************************************/ | ||
54 | void DAPI DpiuAdjustWindowRect( | ||
55 | __in RECT* pWindowRect, | ||
56 | __in DWORD dwStyle, | ||
57 | __in BOOL fMenu, | ||
58 | __in DWORD dwExStyle, | ||
59 | __in UINT nDpi | ||
60 | ); | ||
61 | |||
62 | /******************************************************************** | ||
42 | DpiuGetMonitorContextFromPoint - get the DPI context of the monitor from the given point. | 63 | DpiuGetMonitorContextFromPoint - get the DPI context of the monitor from the given point. |
43 | 64 | ||
44 | *******************************************************************/ | 65 | *******************************************************************/ |