Control.PreProcessControlMessage(Message) 方法

定義

先於訊息迴圈中前置處理鍵盤或輸入訊息後,再分派這些訊息。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 : Message -> System.Windows.Forms.PreProcessControlState
Public Function PreProcessControlMessage (ByRef msg As Message) As PreProcessControlState

參數

msg
Message

Message,表示要處理的訊息。A Message that represents the message to process.

傳回

其中一個 PreProcessControlState 值,取決於 PreProcessMessage(Message)truefalse,以及 IsInputKey(Keys)IsInputChar(Char)truefalseOne of the PreProcessControlState values, depending on whether PreProcessMessage(Message) is true or false and whether IsInputKey(Keys) or IsInputChar(Char) are true or false.

適用於