Control.PreProcessControlMessage(Message) Control.PreProcessControlMessage(Message) Control.PreProcessControlMessage(Message) Control.PreProcessControlMessage(Message) Method

定义

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

public:
 System::Windows::Forms::PreProcessControlState PreProcessControlMessage(System::Windows::Forms::Message % msg);
public System.Windows.Forms.PreProcessControlState PreProcessControlMessage (ref System.Windows.Forms.Message msg);
member this.PreProcessControlMessage :  -> System.Windows.Forms.PreProcessControlState
Public Function PreProcessControlMessage (ByRef msg As Message) As PreProcessControlState

参数

msg
Message Message Message Message

一个 Message,表示要处理的消息。A Message that represents the message to process.

返回

PreProcessControlState 值之一,具体取决于 PreProcessMessage(Message)true 还是 false,以及 IsInputKey(Keys)IsInputChar(Char)true 还是 falseOne of the PreProcessControlState values, depending on whether PreProcessMessage(Message) is true or false and whether IsInputKey(Keys) or IsInputChar(Char) are true or false.

适用于