ThreadMessageEventHandler 委托

定义

表示处理 ThreadFilterMessageThreadPreprocessMessage 事件的方法。Represents the method that handles the ThreadFilterMessage and ThreadPreprocessMessage events.

public delegate void ThreadMessageEventHandler(MSG % msg, bool % handled);
public delegate void ThreadMessageEventHandler(ref MSG msg, ref bool handled);
type ThreadMessageEventHandler = delegate of MSG * bool -> unit
Public Delegate Sub ThreadMessageEventHandler(ByRef msg As MSG, ByRef handled As Boolean)

参数

msg
MSG

具有消息数据的结构。A structure with the message data.

handled
Boolean

如果消息已处理,则为 true;否则为 falsetrue if the message was handled; otherwise, false.

继承
ThreadMessageEventHandler

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅