diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -262,6 +262,14 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam, /* Update DPI and cached metrics. */ g_dpi = HIWORD(wParam); Metric<SM_CXVSCROLL> = GetSystemMetrics(SM_CXVSCROLL); + Metric<SM_CXDOUBLECLK> = GetSystemMetrics(SM_CXDOUBLECLK); + Metric<SM_CYDOUBLECLK> = GetSystemMetrics(SM_CYDOUBLECLK); + + /* TODO: What does GetSystemMetrics return depending + * on the DPI? The documentation says it is not + * DPI-aware. Does that mean that Dpi( + * GetSystemMetrics(...)) will give the correct value? + * If so, the cached values need not be updated. */ Prefer(SetWindowPos(hWnd, nullptr, r->left, r->top, |