aboutsummaryrefslogtreecommitdiff
path: root/src/dutil/inc
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-07-06 19:22:37 +1000
committerSean Hall <r.sean.hall@gmail.com>2020-07-06 21:30:49 +1000
commit219964095a1f4678d8c8e7ae2685c52392161ca2 (patch)
tree2eff04c6a6bfebbc05b667a3bd1fa5ebf04edf6d /src/dutil/inc
parentabeba64d77336b3fbf9aafe9ecc66b779c1e5d02 (diff)
downloadwix-219964095a1f4678d8c8e7ae2685c52392161ca2.tar.gz
wix-219964095a1f4678d8c8e7ae2685c52392161ca2.tar.bz2
wix-219964095a1f4678d8c8e7ae2685c52392161ca2.zip
WIXFEAT:4906 Make Window's Height and Width refer to its client area.
Diffstat (limited to 'src/dutil/inc')
-rw-r--r--src/dutil/inc/dpiutil.h21
-rw-r--r--src/dutil/inc/thmutil.h2
2 files changed, 23 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
28typedef 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 );
28typedef HRESULT (APIENTRY *PFN_GETDPIFORMONITOR)( 35typedef 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();
39void DAPI DpiuUninitialize(); 46void 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*******************************************************************/
54void 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*******************************************************************/
diff --git a/src/dutil/inc/thmutil.h b/src/dutil/inc/thmutil.h
index 1ba5db35..00fa1381 100644
--- a/src/dutil/inc/thmutil.h
+++ b/src/dutil/inc/thmutil.h
@@ -289,6 +289,8 @@ struct THEME
289 int nMinimumHeight; 289 int nMinimumHeight;
290 int nWidth; 290 int nWidth;
291 int nMinimumWidth; 291 int nMinimumWidth;
292 int nWindowHeight;
293 int nWindowWidth;
292 int nSourceX; 294 int nSourceX;
293 int nSourceY; 295 int nSourceY;
294 UINT uStringId; 296 UINT uStringId;