summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-06-12 17:05:26 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-06-12 17:05:26 +0200
commit253b9857e7b4317275b50795ddc53508e1cbd181 (patch)
tree8258de0a3f311ba621051f8130d115b61608d6e5 /alf/alf.h
parentb7e4e6fb0bbfdd91f969be5011c0b76ef0ab2e2d (diff)
icon view and helper functions
initial implementation, needs more testing
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h20
1 files changed, 20 insertions, 0 deletions
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