Sven Baars : user32: Add EnableNonClientDpiScaling stub.

Alexandre Julliard julliard at winehq.org
Wed Feb 19 15:35:49 CST 2020


Module: wine
Branch: master
Commit: 9bd51fff5d10b05e31c519a7db2353c335e431ba
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9bd51fff5d10b05e31c519a7db2353c335e431ba

Author: Sven Baars <sbaars at codeweavers.com>
Date:   Wed Feb 19 16:27:21 2020 +0100

user32: Add EnableNonClientDpiScaling stub.

Signed-off-by: Sven Baars <sbaars at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/sysparams.c | 10 ++++++++++
 dlls/user32/user32.spec |  1 +
 include/winuser.h       |  1 +
 3 files changed, 12 insertions(+)

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index c5c98a7ea1..ab386a074e 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -3664,6 +3664,16 @@ BOOL WINAPI IsProcessDPIAware(void)
     return GetAwarenessFromDpiAwarenessContext( GetThreadDpiAwarenessContext() ) != DPI_AWARENESS_UNAWARE;
 }
 
+/**********************************************************************
+ *              EnableNonClientDpiScaling   (USER32.@)
+ */
+BOOL WINAPI EnableNonClientDpiScaling( HWND hwnd )
+{
+    FIXME("(%p): stub\n", hwnd);
+    SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+    return FALSE;
+}
+
 /***********************************************************************
  *              GetDpiForSystem   (USER32.@)
  */
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index 1aedc32de2..d2a1487971 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -205,6 +205,7 @@
 @ stdcall EmptyClipboard()
 @ stdcall EnableMenuItem(long long long)
 @ stdcall EnableMouseInPointer(long)
+@ stdcall EnableNonClientDpiScaling(long)
 @ stdcall EnableScrollBar(long long long)
 @ stdcall EnableWindow(long long)
 @ stdcall EndDeferWindowPos(long)
diff --git a/include/winuser.h b/include/winuser.h
index 718f6e1c54..5fd774d295 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -3702,6 +3702,7 @@ WINUSERAPI INT         WINAPI DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTP
 WINUSERAPI BOOL        WINAPI EmptyClipboard(void);
 WINUSERAPI BOOL        WINAPI EnableMenuItem(HMENU,UINT,UINT);
 WINUSERAPI BOOL        WINAPI EnableMouseInPointer(BOOL);
+WINUSERAPI BOOL        WINAPI EnableNonClientDpiScaling(HWND);
 WINUSERAPI BOOL        WINAPI EnableScrollBar(HWND,UINT,UINT);
 WINUSERAPI BOOL        WINAPI EnableWindow(HWND,BOOL);
 WINUSERAPI BOOL        WINAPI EndDeferWindowPos(HDWP);




More information about the wine-cvs mailing list