ComponentDispatcher.RaiseThreadMessage(MSG) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示新消息可用于可能的处理。
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如果侦听消息循环的某个模块处理了消息,则为 。 消息循环的所有者应忽略该消息。
- 属性
注解
消息泵的所有者应为每个键盘消息调用此方法。