diff options
author | Zufu Liu <unknown> | 2020-05-27 09:07:07 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2020-05-27 09:07:07 +1000 |
commit | 24501ccaa7e7e9e66cafbe0d1e2cc27c32af9e73 (patch) | |
tree | f150248c62dd98756e0d84d8b84e5ded1ffcbdf0 /win32/PlatWin.h | |
parent | 7164b4855d19b72aa3460b851f9989ffa8cf6f91 (diff) | |
download | scintilla-mirror-24501ccaa7e7e9e66cafbe0d1e2cc27c32af9e73.tar.gz |
Bug [#2063]. Add SystemMetricsForDpi and use for ListBox and mouse drag and drop.
Simplify IME font definition.
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r-- | win32/PlatWin.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |