GetWndMessageFilter Method
Returns the filter for Windows messages to be received by the custom server during a recording session.
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 One does, and can prevent UFT from handling them.
For example, if CHILD_MSGS is returned, and the OnMessage method returns RECORD_HANDLED, UFT One will not receive 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 |
C# | |
---|---|
virtual CTL_MsgFilter GetWndMessageFilter() |
Return Value
A CTL_MsgFilter value.