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/alf.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index db0481f..6140e60 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -470,6 +470,18 @@ ALF_Toplevel_SetDefaultButton(HWND win, WORD id); void ALF_Toplevel_SetDefaultFont(HWND toplevel); +void +ALF_Toplevel_CenterOnMonitor(HWND toplevel, HMONITOR monitor); + +void +ALF_Toplevel_CenterOnCurrentMonitor(HWND toplevel); + +void +ALF_Toplevel_CenterOnOwnerMonitor(HWND toplevel); + +void +ALF_Toplevel_CenterOnPrimaryMonitor(HWND toplevel); + // label HWND -- cgit v1.2.3