diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -156,16 +156,16 @@ static LRESULT CALLBACK CBTProc(const int nCode, const WPARAM wParam, const LPAR /* Look up constants. */ if (auto opLib = try_make<Library>(TEXT("User32.dll"))) - if (auto GetDpiForWindow = (UINT (*)(HWND))opLib->GetProcAddress("GetDpiForWindow")) + if (auto GetDpiForWindow = opLib->GetProcAddress<UINT(HWND)>("GetDpiForWindow")) g_iDPI = GetDpiForWindow(g_hWnd); if (auto opLib = try_make<Library>(TEXT("uxtheme.dll"))) - if (opLib->GetProcAddress("SetWindowTheme")) + if (opLib->GetProcAddress<void>("SetWindowTheme")) g_bThemes = 1; LOGFONT lf; if (auto opLib = try_make<Library>(TEXT("User32.dll"))) { - if (opLib->GetProcAddress("SystemParametersInfo" WA)) { + if (opLib->GetProcAddress<void>("SystemParametersInfo" WA)) { NONCLIENTMETRICS m; m.cbSize = sizeof(NONCLIENTMETRICS); SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &m, 0); |