From a6790b2ca79b9e2712bf41685af75bc4fd3e5e0a Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 26 Feb 2020 12:22:11 +0800 Subject: [PATCH] move typedef CALCPOSINFO from window.h to minigui.h; tune interface of calc_mainwin_pos --- include/minigui.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/minigui.h b/include/minigui.h index 02206d5a..6a233e45 100644 --- a/include/minigui.h +++ b/include/minigui.h @@ -154,6 +154,12 @@ extern "C" { #define ZNIT_TOPMOST_TOOLWIN (ZNIT_HIGHER_TOOLWIN) #define ZNIT_TOPMOST_CONTROL (ZNIT_HIGHER_CONTROL) +typedef struct _CalcPosInfo { + DWORD style; + DWORD ex_style; + RECT rc; +} CALCPOSINFO; + /** * \defgroup rect_vars Global Rectangles * @{ @@ -1560,7 +1566,7 @@ typedef struct _CompositorOps { * a main window with the extended style WS_EX_AUTOPOSITION. */ void (*calc_mainwin_pos) (CompositorCtxt* ctxt, MG_Layer* layer, - DWORD style, DWORD ex_style, RECT* rc_wnd); + DWORD zt_type, int first_for_type, CALCPOSINFO* info); /** * This operation will be called when there was a layer operation.