From fa2220862856936839a4023fdb6e000f3c93d86f Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 1 May 2020 19:00:24 +0200 Subject: groupbox first implementation only classic theme for now, will do uxtheme soon --- alf/alflayout.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'alf/alflayout.h') diff --git a/alf/alflayout.h b/alf/alflayout.h index 9170db7..183c336 100644 --- a/alf/alflayout.h +++ b/alf/alflayout.h @@ -57,9 +57,12 @@ typedef struct tagALFLayout { int dpi; HFONT font; ALFColor bgcolor; - RECT containerMargins; - void (*calculateContainerMetrics)(struct tagALFLayout *layout, HWND hwnd, RECT *margins, SIZE *minSize); + RECT containerMargins; // may be written to by the following functions + void (*beginCalcSizes)(struct tagALFLayout *layout, HWND hwnd); + void (*handleContainerWidgetSize)(struct tagALFLayout *layout, HWND hwnd, HWND hwndContainerWidget, SIZE *s); + void (*endCalcSizes)(struct tagALFLayout *layout, HWND hwnd, SIZE *minSize); RECT allocatedWidgetRect; + void (*preApplyLayoutToContainerWidget)(struct tagALFLayout *layout, HWND hwnd, HWND hwndContainerWidget, RECT *pos); // should modify pos } ALFLayout; void -- cgit v1.2.3