Control.ReflectMessage(IntPtr, Message) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
向绑定到指定句柄的控件反映指定消息。
protected:
static bool ReflectMessage(IntPtr hWnd, System::Windows::Forms::Message % m);
C#
protected static bool ReflectMessage (IntPtr hWnd, ref System.Windows.Forms.Message m);
static member ReflectMessage : nativeint * Message -> bool
Protected Shared Function ReflectMessage (hWnd As IntPtr, ByRef m As Message) As Boolean
如果已反映消息,则为 true
;否则为 false
。
该方法 ReflectMessage 是基础结构方法,通常不应从代码调用。
hWnd
如果参数不表示有效的控件,该方法ReflectMessage将false
返回 。
由于 Windows 消息返回到顶级窗口, ReflectMessage 因此该方法用于将返回消息传播到发送消息的控件。
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |