summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h19
1 files changed, 1 insertions, 18 deletions
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);