From ac07e9afb9ef67ae227966425f85c26613b7ea94 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Mon, 29 Apr 2019 22:10:17 +0200 Subject: remove app, use global variables instead also some unrelated combobox fixes --- alf/alf.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index f5e3b26..b9fe0be 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -48,7 +48,6 @@ typedef struct { #define ALF_WM_GETMODALRESULT (ALF_WM__BASE + 8) #define ALF_WM_CENTIPOINTTOPX (ALF_WM__BASE + 9) #define ALF_WM_SETFOCUS (ALF_WM__BASE + 10) -#define ALF_WM_GETAPPLICATION (ALF_WM__BASE + 11) #define ALF_WM_APPLYSIZE (ALF_WM__BASE + 12) #define ALF_WM_GETLAYOUTPARAMS (ALF_WM__BASE + 13) #define ALF_WM_SETLAYOUTPARAMS (ALF_WM__BASE + 14) @@ -72,8 +71,6 @@ typedef struct { UINT margins[4]; } ALFWidgetLayoutParams; -typedef struct ALFAppPriv *ALFAPP; - typedef enum { ALF_DPI_AWARENESS_UNAWARE, ALF_DPI_AWARENESS_SYSTEM_AWARE, @@ -83,11 +80,11 @@ typedef enum { void ALF_SetDpiAwareness(ALFDpiAwareness awareness); -ALFAPP -ALF_CreateApplication(HINSTANCE hInstance); +void +ALF_Initialize(void); void -ALF_TeardownApplication(ALFAPP app); +ALF_UnInitialize(void); void * ALF_Alloc(SIZE_T nmemb, SIZE_T size); @@ -102,20 +99,17 @@ void ALF_Free(const void *p); LPTSTR -ALF_RegisterWindowClass(ALFAPP app, const ALFWindowClassParams *params); +ALF_RegisterWindowClass(HINSTANCE instance, const ALFWindowClassParams *params); void -ALF_UnregisterWindowClass(ALFAPP app, LPCTSTR className); +ALF_UnregisterWindowClass(HINSTANCE instance, LPCTSTR className); HWND -ALF_InstantiateWindow(ALFAPP app, LPCTSTR className, HWND hwndParent, void *closure); +ALF_InstantiateWindow(HINSTANCE instance, LPCTSTR className, HWND hwndParent, void *closure); void ALF_DestroyWindow(HWND win); -ALFAPP -ALF_ApplicationFromWindow(HWND hwnd); - BOOL ALF_PreTranslateMessage(HWND hwnd, MSG *message); -- cgit v1.2.3