From ff779368d68d2bdbdeb0d28cdf2cf7181fcff0de Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 26 Feb 2020 11:08:27 +0800 Subject: [PATCH] add calc_mainwin_pos to struct _CompositorOps --- include/minigui.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/minigui.h b/include/minigui.h index 65f2c36d..02206d5a 100644 --- a/include/minigui.h +++ b/include/minigui.h @@ -1555,6 +1555,13 @@ typedef struct _CompositorOps { void (*purge_win_data) (CompositorCtxt* ctxt, MG_Layer* layer, int zidx, void* data); + /** + * This operation calculate the default position and size for + * 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); + /** * This operation will be called when there was a layer operation. * For more information, please refer to \a OnChangeLayer.