IMessageFilter IMessageFilter IMessageFilter IMessageFilter Interface

定义

定义消息筛选器接口。Defines a message filter interface.

public interface class IMessageFilter
public interface IMessageFilter
type IMessageFilter = interface
Public Interface IMessageFilter
派生

注解

此接口允许捕获一条消息之前它将被调度到的控件或窗体应用程序。This interface allows an application to capture a message before it is dispatched to a control or form.

实现的类IMessageFilter接口可以添加到应用程序的消息泵将筛选出一条消息或消息被调度到窗体或控件之前执行其他操作。A class that implements the IMessageFilter interface can be added to the application's message pump to filter out a message or perform other operations before the message is dispatched to a form or control. 若要将消息筛选器添加到应用程序的消息泵,请使用AddMessageFilter中的方法Application类。To add the message filter to an application's message pump, use the AddMessageFilter method in the Application class.

方法

PreFilterMessage(Message) PreFilterMessage(Message) PreFilterMessage(Message) PreFilterMessage(Message)

在调度消息之前将其筛选出来。Filters out a message before it is dispatched.

适用于

另请参阅