summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2018-12-26 22:38:08 +0100
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2018-12-26 22:38:08 +0100
commit641789a1c653f46bacfb9dad0a2fde50ac360a5f (patch)
treeb72414bf4fbb6ab50d69da8aabcd552eebeb24ac /alf/alf.h
parent061759e716ba8326efaa7f1328991ddd91085ad6 (diff)
focus and default button stuff
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/alf/alf.h b/alf/alf.h
index d50bd67..b224538 100644
--- a/alf/alf.h
+++ b/alf/alf.h
@@ -41,6 +41,7 @@ typedef struct {
#define ALF_WM_SETMODALRESULT (ALF_WM__BASE + 7)
#define ALF_WM_GETMODALRESULT (ALF_WM__BASE + 8)
#define ALF_WM_CENTIPOINTTOPX (ALF_WM__BASE + 9)
+#define ALF_WM_SETFOCUS (ALF_WM__BASE + 10)
typedef struct {
@@ -82,16 +83,19 @@ LRESULT
ALF_DefWindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
HWND
-ALF_AddLabel(HWND win, int id, UINT x, UINT y, const WCHAR *text);
+ALF_AddLabel(HWND win, WORD id, UINT x, UINT y, const WCHAR *text);
HWND
-ALF_AddEdit(HWND win, int id, UINT x, UINT y, const WCHAR *text);
+ALF_AddEdit(HWND win, WORD id, UINT x, UINT y, const WCHAR *text);
HWND
-ALF_AddButton(HWND win, int id, UINT x, UINT y, const WCHAR *text);
+ALF_AddButton(HWND win, WORD id, UINT x, UINT y, const WCHAR *text);
void
-ALF_DestroyWidget(HWND win, int id);
+ALF_SetDefaultButton(HWND win, WORD id);
+
+void
+ALF_DestroyWidget(HWND win, WORD id);
void
ALF_AddWidget(HWND win, UINT x, UINT y, HWND widget, UINT cptWidth, UINT cptHeight, DWORD flags);
@@ -100,7 +104,7 @@ void
ALF_AddWidgetEx(HWND win, const ALFAddWidgetParams *params);
HWND
-ALF_WidgetHwndById(HWND win, int id);
+ALF_WidgetHwndById(HWND win, WORD id);
void
ALF_RecalculateLayout(HWND win);