From 5a3b46ee43fc601121a85d910d044033d891748f Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Thu, 30 Apr 2020 22:11:34 +0200 Subject: panel: support edge (like delphi) mainly to force me to implement layout margins --- alf/alf.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index faeb177..6d6b333 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -115,6 +115,8 @@ typedef struct { #define ALF_WM_LBL_SETSTYLE (ALF_WM__BASE + 202) #define ALF_WM_PANEL_SETVTABLE (ALF_WM__BASE + 201) +#define ALF_WM_PANEL_GETEDGE (ALF_WM__BASE + 202) +#define ALF_WM_PANEL_SETEDGE (ALF_WM__BASE + 203) #define ALF_WM_NTBK_GETFLAGS (ALF_WM__BASE + 201) #define ALF_WM_NTBK_SETFLAGS (ALF_WM__BASE + 202) @@ -386,7 +388,7 @@ HWND ALF_AddPanel(HWND parent, WORD id, int x, int y); void -ALF_Panel_SetVTable(HWND panel, const ALFPanelVTable *vtbl, void *closure); +ALF_PanelSetVTable(HWND panel, const ALFPanelVTable *vtbl, void *closure); LRESULT ALF_Panel_DefWindowProc(HWND panel, UINT msg, WPARAM wparam, LPARAM lparam); @@ -394,6 +396,12 @@ ALF_Panel_DefWindowProc(HWND panel, UINT msg, WPARAM wparam, LPARAM lparam); void ALF_Panel_DefPaint(HWND panel, HDC hDC, RECT *rcPaint); +DWORD +ALF_PanelEdge(HWND panel); + +void +ALF_PanelSetEdge(HWND panel, DWORD edge); + // tab control HWND ALF_AddNotebook(HWND parent, WORD id, int x, int y); -- cgit v1.2.3