From cdc67e80ac78d08aee04bbc55ece650579beba6c Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 19 Jun 2020 16:48:18 +0200 Subject: add functions for centering a toplevel window on the monitor --- alf/alfcompat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'alf/alfcompat.h') diff --git a/alf/alfcompat.h b/alf/alfcompat.h index e839df4..8acdbc6 100644 --- a/alf/alfcompat.h +++ b/alf/alfcompat.h @@ -138,7 +138,9 @@ extern HRESULT (WINAPI *ALF_Compat_GetThemeTransitionDuration)(HTHEME,int,int,in extern HRESULT (WINAPI *ALF_Compat_GetThemeColor)(HTHEME,int,int,int,COLORREF*); extern HRESULT (WINAPI *ALF_Compat_GetThemeMargins)(HTHEME,HDC,int,int,int,const RECT *,MARGINS *); extern HRESULT (WINAPI *ALF_Compat_LoadIconWithScaleDown)(HINSTANCE,PCWSTR,int,int,HICON *); - +extern BOOL (WINAPI *ALF_Compat_GetMonitorInfoA)(HMONITOR,MONITORINFO *); +extern HMONITOR (WINAPI *ALF_Compat_MonitorFromPoint)(POINT,DWORD); +extern HMONITOR (WINAPI *ALF_Compat_MonitorFromWindow)(HWND,DWORD); // compatibility bits -- cgit v1.2.3