add calc_mainwin_pos to struct _CompositorOps

This commit is contained in:
Vincent Wei
2020-02-26 11:08:27 +08:00
parent 6ae96a3f96
commit ff779368d6

View File

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