Unfortunately, under Windows, messages not known to the current implementation are not forwarded to the application windows, so you can't process wm_touch or wm_gesture messages by a message handler unless you first add these messages to WindowProc in win32callback.inc, such as I have done here, at the end of the list:
WM_IME_COMPOSITION,
WM_IME_COMPOSITIONFULL,
WM_IME_CONTROL,
//WM_IME_ENDCOMPOSITION,
WM_IME_NOTIFY,
WM_IME_REQUEST,
WM_IME_SELECT,
WM_IME_SETCONTEXT,
WM_IME_STARTCOMPOSITION,
$0240, // = WM_TOUCH
$0119 // = WM_GESTURE
:
begin
LMessage.Msg := Msg;
LMessage.WParam := WParam;
LMessage.LParam := LParam;
WinProcess := False;
end;
A full implementation, of course, would rather implement them to fire OnTouch and OnGesture events.