From 24501ccaa7e7e9e66cafbe0d1e2cc27c32af9e73 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Wed, 27 May 2020 09:07:07 +1000 Subject: Bug [#2063]. Add SystemMetricsForDpi and use for ListBox and mouse drag and drop. Simplify IME font definition. --- win32/PlatWin.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win32/PlatWin.h') diff --git a/win32/PlatWin.h b/win32/PlatWin.h index 5ce12b6c0..f8a7ba98a 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -10,6 +10,10 @@ namespace Scintilla { +#ifndef USER_DEFAULT_SCREEN_DPI +#define USER_DEFAULT_SCREEN_DPI 96 +#endif + extern void Platform_Initialise(void *hInstance); extern void Platform_Finalise(bool fromDllMain); @@ -54,6 +58,8 @@ T DLLFunction(HMODULE hModule, LPCSTR lpProcName) noexcept { UINT DpiForWindow(WindowID wid) noexcept; +int SystemMetricsForDpi(int nIndex, UINT dpi) noexcept; + #if defined(USE_D2D) extern bool LoadD2D(); extern ID2D1Factory *pD2DFactory; -- cgit v1.2.3