diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-11 16:17:48 +0100 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-11 16:17:48 +0100 |
| commit | 3ecdf8ec97ee6a0b7453f7b4d0c58a84916cfab0 (patch) | |
| tree | 1e113eb67605db65900951c5d55cd8102bf0f178 /alf/alf.h | |
| parent | 9279dd93c3997a51b227d3380b4da659fcbdff96 (diff) | |
add pretranslate message hook
Diffstat (limited to 'alf/alf.h')
| -rw-r--r-- | alf/alf.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -22,6 +22,7 @@ typedef struct { LRESULT (*message)(void * /*closure*/, HWND, UINT, WPARAM, LPARAM); LRESULT (*command)(void * /*closure*/, HWND /*window*/, WORD /*notificationcode*/, WORD /*sourceid*/, HWND /*control*/); LRESULT (*notify)(void * /*closure*/, HWND /*window*/, WPARAM /*sourceid*/, NMHDR *); + BOOL (*pretranslatemessage)(void * /*closure*/, HWND /*window*/, MSG * /*message*/); } ALFWindowVTable; // layout flags @@ -53,6 +54,7 @@ typedef struct { #define ALF_WM_SETLAYOUTPARAMS (ALF_WM__BASE + 14) #define ALF_WM_GETWIDGETATPOS (ALF_WM__BASE + 15) #define ALF_WM_APPLYFONTS (ALF_WM__BASE + 16) +#define ALF_WM_PRETRANSLATEMSG (ALF_WM__BASE + 17) typedef struct { const TCHAR *className; @@ -102,6 +104,9 @@ ALF_DestroyWindow(HWND win); ALFAPP ALF_ApplicationFromWindow(HWND hwnd); +BOOL +ALF_PreTranslateMessage(HWND hwnd, MSG *message); + int ALF_CentipointsToPixels(HWND win, int cptValue); |
