The custom server receives Windows messages according to the returned filtering level.
You implement the custom server's handling of these messages in the OnMessage method. The custom server receives the messages before UFT does, and can prevent UFT from handling them.
For example, if CHILD_MSGS is returned, and the OnMessage method returns RECORD_HANDLED, UFT will not recieve messages for child controls, and therefore will not create test objects for them during a recording session.
|Visual Basic (Declaration)|
Overridable Function GetWndMessageFilter() As CTL_MsgFilter
virtual CTL_MsgFilter GetWndMessageFilter()