NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IMessageFilter.PreFilterMessage

Called before a message is dispatched. You may return true if you wish to prevent the message from being dispatched.

[Visual Basic]
Function PreFilterMessage( _
   ByRef m As Message _
) As Boolean
[C#]
bool PreFilterMessage(
   ref Message m
);
[C++]
bool PreFilterMessage(
   Message** m
) = 0;
[JScript]
function PreFilterMessage(
   m : Message
) : Boolean;

Parameters

m
The message that is to be dispatched. You may not modify this message.

Return Value

true to filter the message and prevent it from being dispatched, or false to allow the message to continue to the next filter/ control.

See Also

IMessageFilter Interface | IMessageFilter Members | System.WinForms Namespace