Returns the filter for Windows messages to be received by the custom server during a recording session.

Remarks

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.

Syntax

Visual Basic (Declaration) 
Overridable Function GetWndMessageFilter() As CTL_MsgFilter
C# 
virtual CTL_MsgFilter GetWndMessageFilter()

Return Value

A CTL_MsgFilter value.

See Also