This method is called during a recording session on any Windows message hooked by UFT according the filter returned by IRecord.GetWndMessageFilter.
|Visual Basic (Declaration)|
Overridable Function OnMessage( _ ByVal src As DependencyObject, _ ByVal msg As Integer, _ ByVal wParam As Integer, _ ByVal lParam As Integer _ ) As RecordStatus
- The control to which the Windows message is targeted. This can be either the control that is served by this custom server, one of its children, or any other control. Which messages are handled depends on the value returned by GetWndMessageFilter.
- The integer value of the Windows message sent. For example, WM_LBUTTONDOWN is 0x0201.
- The wParam parameter passed with the Windows message.
- The lParam parameter passed with the Windows message.