From 253b9857e7b4317275b50795ddc53508e1cbd181 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 12 Jun 2020 17:05:26 +0200 Subject: icon view and helper functions initial implementation, needs more testing --- alf/alf.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index ad15ed7..db0481f 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -122,6 +122,9 @@ typedef struct { #define ALF_WM_TPLVL_SETDEFFONT (ALF_WM__BASE + 201) +#define ALF_WM_ICONVIEW_GETICON (ALF_WM__BASE + 201) +#define ALF_WM_ICONVIEW_SETICON (ALF_WM__BASE + 202) + #define ALF_WM_USER (ALF_WM__BASE + 300) typedef DWORD ALFColor; @@ -580,6 +583,23 @@ ALF_AddNativeCheckbox(HWND parent, WORD id, int x, int y, const TCHAR *text); HWND ALF_AddNativeRadioButton(HWND parent, WORD id, int x, int y, const TCHAR *text); +// icons and icon widget +HWND +ALF_AddIconView(HWND parent, WORD id, int x, int y, HICON icon); + +HICON +ALF_IconView_Icon(HWND control); + +HICON +ALF_IconView_SetIcon(HWND control, HICON icon); + +HICON +ALF_LoadIcon(HINSTANCE hinst, const TCHAR *name, int cx, int cy); + +SIZE +ALF_IconSize(HICON icon); + + #ifdef __cplusplus } // extern C #endif -- cgit v1.2.3