AxHost.PreProcessMessage(Message) 方法

定义

在调度键盘或输入消息之前,在消息循环内对它们进行预处理。Preprocesses keyboard or input messages within the message loop before they are dispatched.

public:
 override bool PreProcessMessage(System::Windows::Forms::Message % msg);
public override bool PreProcessMessage (ref System.Windows.Forms.Message msg);
override this.PreProcessMessage : Message -> bool
Public Overrides Function PreProcessMessage (ByRef msg As Message) As Boolean

参数

msg
Message

通过引用传递的 Message,表示要处理的消息。A Message, passed by reference, that represents the message to process. 可能的值有 WM_KEYDOWN、WM_SYSKEYDOWN、WM_CHAR 和 WM_SYSCHAR。The possible values are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR.

返回

如果消息已由控件处理,则为 true;否则为 falsetrue if the message was processed by the control; otherwise, false.

适用于