From 3ecdf8ec97ee6a0b7453f7b4d0c58a84916cfab0 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 11 Jan 2019 16:17:48 +0100 Subject: add pretranslate message hook --- alf/alf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index 0c32a20..38e3b0b 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -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); -- cgit v1.2.3