From d1be0b5dce72a3bc355e915916955b1a9a267c47 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Mon, 25 May 2020 21:13:07 +0200 Subject: toplevel window: make it a dialog when you're reimplementing parts of the dialog manager, might as well just use the real thing --- alf/alf.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index 900d977..18cb241 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -80,13 +80,11 @@ typedef struct { #define ALF_WM_SETMODALRESULT (ALF_WM__BASE + 7) #define ALF_WM_GETMODALRESULT (ALF_WM__BASE + 8) #define ALF_WM_GETDPI (ALF_WM__BASE + 9) -#define ALF_WM_SETFOCUS (ALF_WM__BASE + 10) #define ALF_WM_BACKGROUNDCHANGE (ALF_WM__BASE + 11) #define ALF_WM_APPLYSIZE (ALF_WM__BASE + 12) #define ALF_WM_SETBGCOLOR (ALF_WM__BASE + 13) #define ALF_WM_GETBGCOLOR (ALF_WM__BASE + 14) #define ALF_WM_GETWIDGETATPOS (ALF_WM__BASE + 15) -#define ALF_WM_PRETRANSLATEMSG (ALF_WM__BASE + 16) #define ALF_WM_INVALIDATELAYOUT (ALF_WM__BASE + 17) #define ALF_WM_VALIDATELAYOUT (ALF_WM__BASE + 18) #define ALF_WM_LYT_GETWIDGETPOS (ALF_WM__BASE + 19) @@ -129,12 +127,6 @@ typedef DWORD ALFColor; #define ALF_COLOR_RGB(r, g, b) ((ALFColor)(((DWORD)(BYTE)r) | (((DWORD)(BYTE)g) << 8) | (((DWORD)(BYTE)b) << 16))) #define ALF_COLOR_SYS(i) ((ALFColor)(0x80000000 | (((DWORD)(BYTE)i) << 24))) -typedef struct { - const TCHAR *className; - UINT classStyle; - ALFWindowVTable vtbl; -} ALFWindowClassParams; - typedef enum { ALF_DPI_AWARENESS_UNAWARE, ALF_DPI_AWARENESS_SYSTEM_AWARE, @@ -165,21 +157,12 @@ ALF_Free(const void *p); COLORREF ALF_ColorToGdi(ALFColor color); -LPTSTR -ALF_RegisterWindowClass(HINSTANCE instance, const ALFWindowClassParams *params); - -void -ALF_UnregisterWindowClass(HINSTANCE instance, LPCTSTR className); - HWND -ALF_InstantiateWindow(HINSTANCE instance, LPCTSTR className, HWND hwndParent, void *closure); +ALF_CreateToplevelWindow(HWND hwndParent, ALFWindowVTable *vtbl, void *closure); void ALF_DestroyWindow(HWND win); -BOOL -ALF_PreTranslateMessage(HWND hwnd, MSG *message); - int ALF_CentipointsToPixels(int cptValue, int dpi); -- cgit v1.2.3