diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-31 17:01:24 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-08-09 10:27:40 -0600 |
commit | 8a2fa05b14244f179d9bb127c6cb23c72d3bf2ae (patch) | |
tree | 3b213e08e9ff02f8fa7cfbb3f8a4ae5572ec9680 | |
parent | ebdba51558d35a295df4b36a1f55f57d86d44cf3 (diff) | |
download | wix-8a2fa05b14244f179d9bb127c6cb23c72d3bf2ae.tar.gz wix-8a2fa05b14244f179d9bb127c6cb23c72d3bf2ae.tar.bz2 wix-8a2fa05b14244f179d9bb127c6cb23c72d3bf2ae.zip |
Update dpiutil.h so users don't have to include ShellScalingApi.h.
-rw-r--r-- | src/dutil/inc/dpiutil.h | 21 | ||||
-rw-r--r-- | src/dutil/thmutil.cpp | 3 |
2 files changed, 15 insertions, 9 deletions
diff --git a/src/dutil/inc/dpiutil.h b/src/dutil/inc/dpiutil.h index 216d3dc6..b30e2332 100644 --- a/src/dutil/inc/dpiutil.h +++ b/src/dutil/inc/dpiutil.h | |||
@@ -41,23 +41,26 @@ typedef BOOL (APIENTRY* PFN_ADJUSTWINDOWRECTEXFORDPI)( | |||
41 | __in DWORD dwExStyle, | 41 | __in DWORD dwExStyle, |
42 | __in UINT dpi | 42 | __in UINT dpi |
43 | ); | 43 | ); |
44 | typedef HRESULT (APIENTRY *PFN_GETDPIFORMONITOR)( | ||
45 | __in HMONITOR hmonitor, | ||
46 | __in MONITOR_DPI_TYPE dpiType, | ||
47 | __in UINT* dpiX, | ||
48 | __in UINT* dpiY | ||
49 | ); | ||
50 | typedef UINT (APIENTRY *PFN_GETDPIFORWINDOW)( | 44 | typedef UINT (APIENTRY *PFN_GETDPIFORWINDOW)( |
51 | __in HWND hwnd | 45 | __in HWND hwnd |
52 | ); | 46 | ); |
53 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARE)(); | 47 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARE)(); |
54 | typedef HRESULT (APIENTRY* PFN_SETPROCESSDPIAWARENESS)( | ||
55 | __in PROCESS_DPI_AWARENESS value | ||
56 | ); | ||
57 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARENESSCONTEXT)( | 48 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARENESSCONTEXT)( |
58 | __in DPI_AWARENESS_CONTEXT value | 49 | __in DPI_AWARENESS_CONTEXT value |
59 | ); | 50 | ); |
60 | 51 | ||
52 | #ifdef DPI_ENUMS_DECLARED | ||
53 | typedef HRESULT(APIENTRY* PFN_GETDPIFORMONITOR)( | ||
54 | __in HMONITOR hmonitor, | ||
55 | __in MONITOR_DPI_TYPE dpiType, | ||
56 | __in UINT* dpiX, | ||
57 | __in UINT* dpiY | ||
58 | ); | ||
59 | typedef HRESULT(APIENTRY* PFN_SETPROCESSDPIAWARENESS)( | ||
60 | __in PROCESS_DPI_AWARENESS value | ||
61 | ); | ||
62 | #endif | ||
63 | |||
61 | void DAPI DpiuInitialize(); | 64 | void DAPI DpiuInitialize(); |
62 | void DAPI DpiuUninitialize(); | 65 | void DAPI DpiuUninitialize(); |
63 | 66 | ||
diff --git a/src/dutil/thmutil.cpp b/src/dutil/thmutil.cpp index 3cdc09e3..6c9c5cd6 100644 --- a/src/dutil/thmutil.cpp +++ b/src/dutil/thmutil.cpp | |||
@@ -660,6 +660,7 @@ DAPI_(HRESULT) ThemeCreateParentWindow( | |||
660 | } | 660 | } |
661 | else | 661 | else |
662 | { | 662 | { |
663 | hr = S_OK; | ||
663 | x = CW_USEDEFAULT; | 664 | x = CW_USEDEFAULT; |
664 | y = CW_USEDEFAULT; | 665 | y = CW_USEDEFAULT; |
665 | } | 666 | } |
@@ -4683,6 +4684,8 @@ static HRESULT ShowControl( | |||
4683 | ++iPageControl; | 4684 | ++iPageControl; |
4684 | } | 4685 | } |
4685 | 4686 | ||
4687 | hr = S_OK; | ||
4688 | |||
4686 | Button_SetCheck(hWnd, (!sczText && !pControl->sczValue) || CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, sczText, -1, pControl->sczValue, -1)); | 4689 | Button_SetCheck(hWnd, (!sczText && !pControl->sczValue) || CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, sczText, -1, pControl->sczValue, -1)); |
4687 | } | 4690 | } |
4688 | } | 4691 | } |