move typedef CALCPOSINFO from window.h to minigui.h; tune interface of calc_mainwin_pos

This commit is contained in:
Vincent Wei
2020-02-26 12:22:11 +08:00
parent 3fde7981ed
commit a6790b2ca7

View File

@@ -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.