formhook OnMessageAfter event
OnMessageBefore Example
Return to Introduction  Previous page  Next page
Applies to
acFormHook component.  

Declaration
type  
  TacWndProcMessageAfterEvent = procedure(Sender: TObject; var Message: TMessage) of object;  
 
property OnMessageAfter: TacWndProcMessageAfterEvent;  

Description
The OnMessageAfter event occurs after processing of window message by default procedure handler.  
 
Write the OnMessageAfter event handler to hook all windows messages (WM_xxx) sent to this form, after their processing by default message handler (CallWindowProc API routine).  

Caution
iiwarning Thousands of messages per second flow though this event. Be careful when coding the handler, because it can affect the performance of the entire application.  

See also
OnMessageBefore event and small example how to hook windows messages.