Share via


ComponentDispatcher.RaiseThreadMessage(MSG) 方法

定义

指示会对可能的处理显示新消息。

public:
 static bool RaiseThreadMessage(System::Windows::Interop::MSG % msg);
[System.Security.SecurityCritical]
public static bool RaiseThreadMessage (ref System.Windows.Interop.MSG msg);
public static bool RaiseThreadMessage (ref System.Windows.Interop.MSG msg);
[<System.Security.SecurityCritical>]
static member RaiseThreadMessage : MSG -> bool
static member RaiseThreadMessage : MSG -> bool
Public Shared Function RaiseThreadMessage (ByRef msg As MSG) As Boolean

参数

msg
MSG

该消息及其关联数据。

返回

如果侦听消息循环的任一模块已处理了该消息,则为 true。 消息循环的所有者应忽略该消息。 如果未处理该消息,则为 false。 在这种情况下,消息泵的所有者应调用 Win32 函数 TranslateMessage(后跟 DispatchMessage)。

属性

注解

消息泵的所有者应为每个键盘消息调用此方法。

适用于

另请参阅