diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-05-25 21:13:07 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-05-25 21:13:07 +0200 |
| commit | d1be0b5dce72a3bc355e915916955b1a9a267c47 (patch) | |
| tree | f4f44a9d4ca109d68839b0a0d44e1fea1d1dc4f9 /alf/alf.h | |
| parent | e9911ec586892bc150dbe39ecc1ecf300d89a6f4 (diff) | |
toplevel window: make it a dialog
when you're reimplementing parts of the dialog manager, might as well
just use the real thing
Diffstat (limited to 'alf/alf.h')
| -rw-r--r-- | alf/alf.h | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -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); |
