Alexandre Julliard : user32: Add a stub for GetDpiForWindow().
Alexandre Julliard
julliard at winehq.org
Thu Mar 29 19:13:29 CDT 2018
Module: wine
Branch: master
Commit: 79916de39723c76a63775233ae8a17483d4d6b42
URL: https://source.winehq.org/git/wine.git/?a=commit;h=79916de39723c76a63775233ae8a17483d4d6b42
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Mar 29 15:01:22 2018 +0200
user32: Add a stub for GetDpiForWindow().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/sysparams.c | 9 +++++++++
dlls/user32/user32.spec | 1 +
include/winuser.h | 1 +
3 files changed, 11 insertions(+)
diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 454d58c..9467163 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -2955,6 +2955,15 @@ UINT WINAPI GetDpiForSystem(void)
return display_dpi;
}
+/***********************************************************************
+ * GetDpiForWindow (USER32.@)
+ */
+UINT WINAPI GetDpiForWindow( HWND hwnd )
+{
+ FIXME( "stub: %p\n", hwnd );
+ return GetDpiForSystem();
+}
+
/**********************************************************************
* SetThreadDpiAwarenessContext (USER32.@)
*/
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index 05bdae4..e0fdd3a 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -293,6 +293,7 @@
@ stdcall GetDlgItemTextW(long long ptr long)
@ stdcall GetDoubleClickTime()
@ stdcall GetDpiForSystem()
+@ stdcall GetDpiForWindow(long)
@ stdcall GetFocus()
@ stdcall GetForegroundWindow()
@ stdcall GetGestureConfig(long long long ptr ptr long)
diff --git a/include/winuser.h b/include/winuser.h
index 18a6e3a..ece0109 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -3675,6 +3675,7 @@ WINUSERAPI UINT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,INT);
WINUSERAPI UINT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,INT);
#define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
WINUSERAPI UINT WINAPI GetDoubleClickTime(void);
+WINUSERAPI UINT WINAPI GetDpiForWindow(HWND);
WINUSERAPI UINT WINAPI GetDpiForSystem(void);
WINUSERAPI HWND WINAPI GetFocus(void);
WINUSERAPI HWND WINAPI GetForegroundWindow(void);
More information about the wine-cvs
mailing list